Compare commits
1 Commits
Push-patch
...
patch/2020
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a13d778e7b |
137
.clang-format
137
.clang-format
@@ -1,137 +0,0 @@
|
|||||||
---
|
|
||||||
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,8 +61,6 @@ endif()
|
|||||||
|
|
||||||
if(BUILD_PRODUCT STREQUAL "")
|
if(BUILD_PRODUCT STREQUAL "")
|
||||||
message(WARNING "Please set the value of 'BUILD_PRODUCT'")
|
message(WARNING "Please set the value of 'BUILD_PRODUCT'")
|
||||||
elseif(BUILD_PRODUCT STREQUAL "core")
|
|
||||||
add_subdirectory(core)
|
|
||||||
else()
|
else()
|
||||||
add_subdirectory(core)
|
add_subdirectory(core)
|
||||||
add_subdirectory(${BUILD_PRODUCT})
|
add_subdirectory(${BUILD_PRODUCT})
|
||||||
|
|||||||
@@ -15,9 +15,6 @@ 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)。
|
如果您在使用的过程中遇到任何问题,欢迎前往[阿里云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++ 前,确保您已经:
|
在使用 Alibaba Cloud SDK for C++ 前,确保您已经:
|
||||||
|
|||||||
@@ -17,9 +17,6 @@ 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).
|
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
|
## Requirements
|
||||||
|
|
||||||
- To use this SDK, you must have an Alibaba Cloud account and an AccessKey.
|
- To use this SDK, you must have an Alibaba Cloud account and an AccessKey.
|
||||||
|
|||||||
@@ -35,10 +35,6 @@ set(adb_public_header_model
|
|||||||
include/alibabacloud/adb/model/DescribeAccountsResult.h
|
include/alibabacloud/adb/model/DescribeAccountsResult.h
|
||||||
include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h
|
include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h
|
||||||
include/alibabacloud/adb/model/DescribeAllDataSourceResult.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/DescribeAutoRenewAttributeRequest.h
|
||||||
include/alibabacloud/adb/model/DescribeAutoRenewAttributeResult.h
|
include/alibabacloud/adb/model/DescribeAutoRenewAttributeResult.h
|
||||||
include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h
|
include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h
|
||||||
@@ -61,6 +57,10 @@ set(adb_public_header_model
|
|||||||
include/alibabacloud/adb/model/DescribeDBClustersResult.h
|
include/alibabacloud/adb/model/DescribeDBClustersResult.h
|
||||||
include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h
|
include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h
|
||||||
include/alibabacloud/adb/model/DescribeInclinedTablesResult.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/DescribeOperatorPermissionRequest.h
|
||||||
include/alibabacloud/adb/model/DescribeOperatorPermissionResult.h
|
include/alibabacloud/adb/model/DescribeOperatorPermissionResult.h
|
||||||
include/alibabacloud/adb/model/DescribeProcessListRequest.h
|
include/alibabacloud/adb/model/DescribeProcessListRequest.h
|
||||||
@@ -75,8 +75,6 @@ set(adb_public_header_model
|
|||||||
include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h
|
include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h
|
||||||
include/alibabacloud/adb/model/DescribeTableDetailRequest.h
|
include/alibabacloud/adb/model/DescribeTableDetailRequest.h
|
||||||
include/alibabacloud/adb/model/DescribeTableDetailResult.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/DescribeTablesRequest.h
|
||||||
include/alibabacloud/adb/model/DescribeTablesResult.h
|
include/alibabacloud/adb/model/DescribeTablesResult.h
|
||||||
include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
|
include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
|
||||||
@@ -89,8 +87,6 @@ set(adb_public_header_model
|
|||||||
include/alibabacloud/adb/model/ListTagResourcesResult.h
|
include/alibabacloud/adb/model/ListTagResourcesResult.h
|
||||||
include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h
|
include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h
|
||||||
include/alibabacloud/adb/model/ModifyAccountDescriptionResult.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/ModifyAutoRenewAttributeRequest.h
|
||||||
include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h
|
include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h
|
||||||
include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h
|
include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h
|
||||||
@@ -134,10 +130,6 @@ set(adb_src
|
|||||||
src/model/DescribeAccountsResult.cc
|
src/model/DescribeAccountsResult.cc
|
||||||
src/model/DescribeAllDataSourceRequest.cc
|
src/model/DescribeAllDataSourceRequest.cc
|
||||||
src/model/DescribeAllDataSourceResult.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/DescribeAutoRenewAttributeRequest.cc
|
||||||
src/model/DescribeAutoRenewAttributeResult.cc
|
src/model/DescribeAutoRenewAttributeResult.cc
|
||||||
src/model/DescribeAvailableResourceRequest.cc
|
src/model/DescribeAvailableResourceRequest.cc
|
||||||
@@ -160,6 +152,10 @@ set(adb_src
|
|||||||
src/model/DescribeDBClustersResult.cc
|
src/model/DescribeDBClustersResult.cc
|
||||||
src/model/DescribeInclinedTablesRequest.cc
|
src/model/DescribeInclinedTablesRequest.cc
|
||||||
src/model/DescribeInclinedTablesResult.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/DescribeOperatorPermissionRequest.cc
|
||||||
src/model/DescribeOperatorPermissionResult.cc
|
src/model/DescribeOperatorPermissionResult.cc
|
||||||
src/model/DescribeProcessListRequest.cc
|
src/model/DescribeProcessListRequest.cc
|
||||||
@@ -174,8 +170,6 @@ set(adb_src
|
|||||||
src/model/DescribeSlowLogTrendResult.cc
|
src/model/DescribeSlowLogTrendResult.cc
|
||||||
src/model/DescribeTableDetailRequest.cc
|
src/model/DescribeTableDetailRequest.cc
|
||||||
src/model/DescribeTableDetailResult.cc
|
src/model/DescribeTableDetailResult.cc
|
||||||
src/model/DescribeTablePartitionDiagnoseRequest.cc
|
|
||||||
src/model/DescribeTablePartitionDiagnoseResult.cc
|
|
||||||
src/model/DescribeTablesRequest.cc
|
src/model/DescribeTablesRequest.cc
|
||||||
src/model/DescribeTablesResult.cc
|
src/model/DescribeTablesResult.cc
|
||||||
src/model/DescribeTaskInfoRequest.cc
|
src/model/DescribeTaskInfoRequest.cc
|
||||||
@@ -188,8 +182,6 @@ set(adb_src
|
|||||||
src/model/ListTagResourcesResult.cc
|
src/model/ListTagResourcesResult.cc
|
||||||
src/model/ModifyAccountDescriptionRequest.cc
|
src/model/ModifyAccountDescriptionRequest.cc
|
||||||
src/model/ModifyAccountDescriptionResult.cc
|
src/model/ModifyAccountDescriptionResult.cc
|
||||||
src/model/ModifyAuditLogConfigRequest.cc
|
|
||||||
src/model/ModifyAuditLogConfigResult.cc
|
|
||||||
src/model/ModifyAutoRenewAttributeRequest.cc
|
src/model/ModifyAutoRenewAttributeRequest.cc
|
||||||
src/model/ModifyAutoRenewAttributeResult.cc
|
src/model/ModifyAutoRenewAttributeResult.cc
|
||||||
src/model/ModifyBackupPolicyRequest.cc
|
src/model/ModifyBackupPolicyRequest.cc
|
||||||
|
|||||||
@@ -36,10 +36,6 @@
|
|||||||
#include "model/DescribeAccountsResult.h"
|
#include "model/DescribeAccountsResult.h"
|
||||||
#include "model/DescribeAllDataSourceRequest.h"
|
#include "model/DescribeAllDataSourceRequest.h"
|
||||||
#include "model/DescribeAllDataSourceResult.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/DescribeAutoRenewAttributeRequest.h"
|
||||||
#include "model/DescribeAutoRenewAttributeResult.h"
|
#include "model/DescribeAutoRenewAttributeResult.h"
|
||||||
#include "model/DescribeAvailableResourceRequest.h"
|
#include "model/DescribeAvailableResourceRequest.h"
|
||||||
@@ -62,6 +58,10 @@
|
|||||||
#include "model/DescribeDBClustersResult.h"
|
#include "model/DescribeDBClustersResult.h"
|
||||||
#include "model/DescribeInclinedTablesRequest.h"
|
#include "model/DescribeInclinedTablesRequest.h"
|
||||||
#include "model/DescribeInclinedTablesResult.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/DescribeOperatorPermissionRequest.h"
|
||||||
#include "model/DescribeOperatorPermissionResult.h"
|
#include "model/DescribeOperatorPermissionResult.h"
|
||||||
#include "model/DescribeProcessListRequest.h"
|
#include "model/DescribeProcessListRequest.h"
|
||||||
@@ -76,8 +76,6 @@
|
|||||||
#include "model/DescribeSlowLogTrendResult.h"
|
#include "model/DescribeSlowLogTrendResult.h"
|
||||||
#include "model/DescribeTableDetailRequest.h"
|
#include "model/DescribeTableDetailRequest.h"
|
||||||
#include "model/DescribeTableDetailResult.h"
|
#include "model/DescribeTableDetailResult.h"
|
||||||
#include "model/DescribeTablePartitionDiagnoseRequest.h"
|
|
||||||
#include "model/DescribeTablePartitionDiagnoseResult.h"
|
|
||||||
#include "model/DescribeTablesRequest.h"
|
#include "model/DescribeTablesRequest.h"
|
||||||
#include "model/DescribeTablesResult.h"
|
#include "model/DescribeTablesResult.h"
|
||||||
#include "model/DescribeTaskInfoRequest.h"
|
#include "model/DescribeTaskInfoRequest.h"
|
||||||
@@ -90,8 +88,6 @@
|
|||||||
#include "model/ListTagResourcesResult.h"
|
#include "model/ListTagResourcesResult.h"
|
||||||
#include "model/ModifyAccountDescriptionRequest.h"
|
#include "model/ModifyAccountDescriptionRequest.h"
|
||||||
#include "model/ModifyAccountDescriptionResult.h"
|
#include "model/ModifyAccountDescriptionResult.h"
|
||||||
#include "model/ModifyAuditLogConfigRequest.h"
|
|
||||||
#include "model/ModifyAuditLogConfigResult.h"
|
|
||||||
#include "model/ModifyAutoRenewAttributeRequest.h"
|
#include "model/ModifyAutoRenewAttributeRequest.h"
|
||||||
#include "model/ModifyAutoRenewAttributeResult.h"
|
#include "model/ModifyAutoRenewAttributeResult.h"
|
||||||
#include "model/ModifyBackupPolicyRequest.h"
|
#include "model/ModifyBackupPolicyRequest.h"
|
||||||
@@ -148,12 +144,6 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DescribeAllDataSourceResult> DescribeAllDataSourceOutcome;
|
typedef Outcome<Error, Model::DescribeAllDataSourceResult> DescribeAllDataSourceOutcome;
|
||||||
typedef std::future<DescribeAllDataSourceOutcome> DescribeAllDataSourceOutcomeCallable;
|
typedef std::future<DescribeAllDataSourceOutcome> DescribeAllDataSourceOutcomeCallable;
|
||||||
typedef std::function<void(const AdbClient*, const Model::DescribeAllDataSourceRequest&, const DescribeAllDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAllDataSourceAsyncHandler;
|
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 Outcome<Error, Model::DescribeAutoRenewAttributeResult> DescribeAutoRenewAttributeOutcome;
|
||||||
typedef std::future<DescribeAutoRenewAttributeOutcome> DescribeAutoRenewAttributeOutcomeCallable;
|
typedef std::future<DescribeAutoRenewAttributeOutcome> DescribeAutoRenewAttributeOutcomeCallable;
|
||||||
typedef std::function<void(const AdbClient*, const Model::DescribeAutoRenewAttributeRequest&, const DescribeAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAutoRenewAttributeAsyncHandler;
|
typedef std::function<void(const AdbClient*, const Model::DescribeAutoRenewAttributeRequest&, const DescribeAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAutoRenewAttributeAsyncHandler;
|
||||||
@@ -187,6 +177,12 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DescribeInclinedTablesResult> DescribeInclinedTablesOutcome;
|
typedef Outcome<Error, Model::DescribeInclinedTablesResult> DescribeInclinedTablesOutcome;
|
||||||
typedef std::future<DescribeInclinedTablesOutcome> DescribeInclinedTablesOutcomeCallable;
|
typedef std::future<DescribeInclinedTablesOutcome> DescribeInclinedTablesOutcomeCallable;
|
||||||
typedef std::function<void(const AdbClient*, const Model::DescribeInclinedTablesRequest&, const DescribeInclinedTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInclinedTablesAsyncHandler;
|
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 Outcome<Error, Model::DescribeOperatorPermissionResult> DescribeOperatorPermissionOutcome;
|
||||||
typedef std::future<DescribeOperatorPermissionOutcome> DescribeOperatorPermissionOutcomeCallable;
|
typedef std::future<DescribeOperatorPermissionOutcome> DescribeOperatorPermissionOutcomeCallable;
|
||||||
typedef std::function<void(const AdbClient*, const Model::DescribeOperatorPermissionRequest&, const DescribeOperatorPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOperatorPermissionAsyncHandler;
|
typedef std::function<void(const AdbClient*, const Model::DescribeOperatorPermissionRequest&, const DescribeOperatorPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOperatorPermissionAsyncHandler;
|
||||||
@@ -208,9 +204,6 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DescribeTableDetailResult> DescribeTableDetailOutcome;
|
typedef Outcome<Error, Model::DescribeTableDetailResult> DescribeTableDetailOutcome;
|
||||||
typedef std::future<DescribeTableDetailOutcome> DescribeTableDetailOutcomeCallable;
|
typedef std::future<DescribeTableDetailOutcome> DescribeTableDetailOutcomeCallable;
|
||||||
typedef std::function<void(const AdbClient*, const Model::DescribeTableDetailRequest&, const DescribeTableDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTableDetailAsyncHandler;
|
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 Outcome<Error, Model::DescribeTablesResult> DescribeTablesOutcome;
|
||||||
typedef std::future<DescribeTablesOutcome> DescribeTablesOutcomeCallable;
|
typedef std::future<DescribeTablesOutcome> DescribeTablesOutcomeCallable;
|
||||||
typedef std::function<void(const AdbClient*, const Model::DescribeTablesRequest&, const DescribeTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTablesAsyncHandler;
|
typedef std::function<void(const AdbClient*, const Model::DescribeTablesRequest&, const DescribeTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTablesAsyncHandler;
|
||||||
@@ -229,9 +222,6 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ModifyAccountDescriptionResult> ModifyAccountDescriptionOutcome;
|
typedef Outcome<Error, Model::ModifyAccountDescriptionResult> ModifyAccountDescriptionOutcome;
|
||||||
typedef std::future<ModifyAccountDescriptionOutcome> ModifyAccountDescriptionOutcomeCallable;
|
typedef std::future<ModifyAccountDescriptionOutcome> ModifyAccountDescriptionOutcomeCallable;
|
||||||
typedef std::function<void(const AdbClient*, const Model::ModifyAccountDescriptionRequest&, const ModifyAccountDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountDescriptionAsyncHandler;
|
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 Outcome<Error, Model::ModifyAutoRenewAttributeResult> ModifyAutoRenewAttributeOutcome;
|
||||||
typedef std::future<ModifyAutoRenewAttributeOutcome> ModifyAutoRenewAttributeOutcomeCallable;
|
typedef std::future<ModifyAutoRenewAttributeOutcome> ModifyAutoRenewAttributeOutcomeCallable;
|
||||||
typedef std::function<void(const AdbClient*, const Model::ModifyAutoRenewAttributeRequest&, const ModifyAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAutoRenewAttributeAsyncHandler;
|
typedef std::function<void(const AdbClient*, const Model::ModifyAutoRenewAttributeRequest&, const ModifyAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAutoRenewAttributeAsyncHandler;
|
||||||
@@ -297,12 +287,6 @@ namespace AlibabaCloud
|
|||||||
DescribeAllDataSourceOutcome describeAllDataSource(const Model::DescribeAllDataSourceRequest &request)const;
|
DescribeAllDataSourceOutcome describeAllDataSource(const Model::DescribeAllDataSourceRequest &request)const;
|
||||||
void describeAllDataSourceAsync(const Model::DescribeAllDataSourceRequest& request, const DescribeAllDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
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;
|
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;
|
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;
|
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;
|
DescribeAutoRenewAttributeOutcomeCallable describeAutoRenewAttributeCallable(const Model::DescribeAutoRenewAttributeRequest& request) const;
|
||||||
@@ -336,6 +320,12 @@ namespace AlibabaCloud
|
|||||||
DescribeInclinedTablesOutcome describeInclinedTables(const Model::DescribeInclinedTablesRequest &request)const;
|
DescribeInclinedTablesOutcome describeInclinedTables(const Model::DescribeInclinedTablesRequest &request)const;
|
||||||
void describeInclinedTablesAsync(const Model::DescribeInclinedTablesRequest& request, const DescribeInclinedTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
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;
|
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;
|
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;
|
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;
|
DescribeOperatorPermissionOutcomeCallable describeOperatorPermissionCallable(const Model::DescribeOperatorPermissionRequest& request) const;
|
||||||
@@ -357,9 +347,6 @@ namespace AlibabaCloud
|
|||||||
DescribeTableDetailOutcome describeTableDetail(const Model::DescribeTableDetailRequest &request)const;
|
DescribeTableDetailOutcome describeTableDetail(const Model::DescribeTableDetailRequest &request)const;
|
||||||
void describeTableDetailAsync(const Model::DescribeTableDetailRequest& request, const DescribeTableDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
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;
|
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;
|
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;
|
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;
|
DescribeTablesOutcomeCallable describeTablesCallable(const Model::DescribeTablesRequest& request) const;
|
||||||
@@ -378,9 +365,6 @@ namespace AlibabaCloud
|
|||||||
ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const;
|
ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const;
|
||||||
void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
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;
|
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;
|
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;
|
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;
|
ModifyAutoRenewAttributeOutcomeCallable modifyAutoRenewAttributeCallable(const Model::ModifyAutoRenewAttributeRequest& request) const;
|
||||||
|
|||||||
@@ -41,16 +41,8 @@ namespace AlibabaCloud
|
|||||||
void setDBClusterDescription(const std::string& dBClusterDescription);
|
void setDBClusterDescription(const std::string& dBClusterDescription);
|
||||||
std::string getClientToken()const;
|
std::string getClientToken()const;
|
||||||
void setClientToken(const std::string& clientToken);
|
void setClientToken(const std::string& clientToken);
|
||||||
std::string getStorageType()const;
|
|
||||||
void setStorageType(const std::string& storageType);
|
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
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;
|
std::string getRegionId()const;
|
||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getDBClusterCategory()const;
|
std::string getDBClusterCategory()const;
|
||||||
@@ -77,14 +69,10 @@ namespace AlibabaCloud
|
|||||||
void setVSwitchId(const std::string& vSwitchId);
|
void setVSwitchId(const std::string& vSwitchId);
|
||||||
std::string getDBNodeStorage()const;
|
std::string getDBNodeStorage()const;
|
||||||
void setDBNodeStorage(const std::string& dBNodeStorage);
|
void setDBNodeStorage(const std::string& dBNodeStorage);
|
||||||
std::string getExecutorCount()const;
|
|
||||||
void setExecutorCount(const std::string& executorCount);
|
|
||||||
std::string getVPCId()const;
|
std::string getVPCId()const;
|
||||||
void setVPCId(const std::string& vPCId);
|
void setVPCId(const std::string& vPCId);
|
||||||
std::string getZoneId()const;
|
std::string getZoneId()const;
|
||||||
void setZoneId(const std::string& zoneId);
|
void setZoneId(const std::string& zoneId);
|
||||||
std::string getComputeResource()const;
|
|
||||||
void setComputeResource(const std::string& computeResource);
|
|
||||||
std::string getPayType()const;
|
std::string getPayType()const;
|
||||||
void setPayType(const std::string& payType);
|
void setPayType(const std::string& payType);
|
||||||
|
|
||||||
@@ -92,11 +80,7 @@ namespace AlibabaCloud
|
|||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
std::string dBClusterDescription_;
|
std::string dBClusterDescription_;
|
||||||
std::string clientToken_;
|
std::string clientToken_;
|
||||||
std::string storageType_;
|
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string mode_;
|
|
||||||
std::string resourceGroupId_;
|
|
||||||
std::string storageResource_;
|
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
std::string dBClusterCategory_;
|
std::string dBClusterCategory_;
|
||||||
std::string dBClusterNetworkType_;
|
std::string dBClusterNetworkType_;
|
||||||
@@ -110,10 +94,8 @@ namespace AlibabaCloud
|
|||||||
std::string usedTime_;
|
std::string usedTime_;
|
||||||
std::string vSwitchId_;
|
std::string vSwitchId_;
|
||||||
std::string dBNodeStorage_;
|
std::string dBNodeStorage_;
|
||||||
std::string executorCount_;
|
|
||||||
std::string vPCId_;
|
std::string vPCId_;
|
||||||
std::string zoneId_;
|
std::string zoneId_;
|
||||||
std::string computeResource_;
|
|
||||||
std::string payType_;
|
std::string payType_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,14 +37,12 @@ namespace AlibabaCloud
|
|||||||
CreateDBClusterResult();
|
CreateDBClusterResult();
|
||||||
explicit CreateDBClusterResult(const std::string &payload);
|
explicit CreateDBClusterResult(const std::string &payload);
|
||||||
~CreateDBClusterResult();
|
~CreateDBClusterResult();
|
||||||
std::string getResourceGroupId()const;
|
|
||||||
std::string getDBClusterId()const;
|
std::string getDBClusterId()const;
|
||||||
std::string getOrderId()const;
|
std::string getOrderId()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string resourceGroupId_;
|
|
||||||
std::string dBClusterId_;
|
std::string dBClusterId_;
|
||||||
std::string orderId_;
|
std::string orderId_;
|
||||||
|
|
||||||
|
|||||||
@@ -1,53 +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_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_
|
|
||||||
@@ -1,99 +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_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_
|
|
||||||
@@ -1,71 +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_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,8 +41,6 @@ namespace AlibabaCloud
|
|||||||
void setPageNumber(int pageNumber);
|
void setPageNumber(int pageNumber);
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getResourceGroupId()const;
|
|
||||||
void setResourceGroupId(const std::string& resourceGroupId);
|
|
||||||
std::string getRegionId()const;
|
std::string getRegionId()const;
|
||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
int getPageSize()const;
|
int getPageSize()const;
|
||||||
@@ -60,7 +58,6 @@ namespace AlibabaCloud
|
|||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
int pageNumber_;
|
int pageNumber_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string resourceGroupId_;
|
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
int pageSize_;
|
int pageSize_;
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
|
|||||||
@@ -34,53 +34,30 @@ namespace AlibabaCloud
|
|||||||
public:
|
public:
|
||||||
struct AvailableZone
|
struct AvailableZone
|
||||||
{
|
{
|
||||||
struct SupportedModeItem
|
struct SupportedSerial
|
||||||
{
|
{
|
||||||
struct SupportedSerialListItem
|
struct SupportedInstanceClass
|
||||||
{
|
{
|
||||||
struct SupportedFlexibleResourceItem
|
struct SupportedNodeCount
|
||||||
{
|
{
|
||||||
std::string storageType;
|
struct NodeCount
|
||||||
std::vector<std::string> supportedStorageResource;
|
|
||||||
std::vector<std::string> supportedComputeResource;
|
|
||||||
};
|
|
||||||
struct SupportedInstanceClass
|
|
||||||
{
|
|
||||||
struct SupportedNodeCount
|
|
||||||
{
|
{
|
||||||
struct NodeCount
|
std::string maxCount;
|
||||||
{
|
std::string step;
|
||||||
std::string maxCount;
|
std::string minCount;
|
||||||
std::string step;
|
|
||||||
std::string minCount;
|
|
||||||
};
|
|
||||||
NodeCount nodeCount;
|
|
||||||
std::vector<std::string> storageSize;
|
|
||||||
};
|
};
|
||||||
struct SupportedExecutor
|
NodeCount nodeCount;
|
||||||
{
|
std::vector<std::string> storageSize;
|
||||||
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::string instanceClass;
|
||||||
std::vector<SupportedSerialListItem::SupportedFlexibleResourceItem> supportedFlexibleResource;
|
std::vector<SupportedInstanceClass::SupportedNodeCount> supportedNodeCountList;
|
||||||
std::vector<SupportedSerialListItem::SupportedInstanceClass> supportedInstanceClassList;
|
std::string tips;
|
||||||
};
|
};
|
||||||
std::string mode;
|
std::string serial;
|
||||||
std::vector<SupportedModeItem::SupportedSerialListItem> supportedSerialList;
|
std::vector<SupportedSerial::SupportedInstanceClass> supportedInstanceClassList;
|
||||||
};
|
};
|
||||||
std::string zoneId;
|
std::string zoneId;
|
||||||
std::vector<AvailableZone::SupportedModeItem> supportedMode;
|
std::vector<AvailableZone::SupportedSerial> supportedSerialList;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -39,19 +39,15 @@ namespace AlibabaCloud
|
|||||||
std::string value;
|
std::string value;
|
||||||
std::string key;
|
std::string key;
|
||||||
};
|
};
|
||||||
std::string storageResource;
|
|
||||||
std::string category;
|
std::string category;
|
||||||
std::string resourceGroupId;
|
|
||||||
int port;
|
int port;
|
||||||
std::string dBClusterId;
|
std::string dBClusterId;
|
||||||
std::string dBClusterNetworkType;
|
std::string dBClusterNetworkType;
|
||||||
std::string dBClusterType;
|
std::string dBClusterType;
|
||||||
std::string diskType;
|
|
||||||
std::string dBVersion;
|
std::string dBVersion;
|
||||||
std::string dtsJobId;
|
std::string dtsJobId;
|
||||||
long dBNodeCount;
|
long dBNodeCount;
|
||||||
std::string commodityCode;
|
std::string commodityCode;
|
||||||
std::string executorCount;
|
|
||||||
std::string lockReason;
|
std::string lockReason;
|
||||||
std::string maintainTime;
|
std::string maintainTime;
|
||||||
std::vector<DBCluster::Tag> tags;
|
std::vector<DBCluster::Tag> tags;
|
||||||
@@ -61,9 +57,7 @@ namespace AlibabaCloud
|
|||||||
std::string vPCId;
|
std::string vPCId;
|
||||||
std::string dBClusterStatus;
|
std::string dBClusterStatus;
|
||||||
std::string vSwitchId;
|
std::string vSwitchId;
|
||||||
std::string mode;
|
|
||||||
std::string dBClusterDescription;
|
std::string dBClusterDescription;
|
||||||
std::string computeResource;
|
|
||||||
std::string expired;
|
std::string expired;
|
||||||
std::string lockMode;
|
std::string lockMode;
|
||||||
std::string payType;
|
std::string payType;
|
||||||
|
|||||||
@@ -51,8 +51,6 @@ namespace AlibabaCloud
|
|||||||
void setPageNumber(int pageNumber);
|
void setPageNumber(int pageNumber);
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getResourceGroupId()const;
|
|
||||||
void setResourceGroupId(const std::string& resourceGroupId);
|
|
||||||
std::string getRegionId()const;
|
std::string getRegionId()const;
|
||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
int getPageSize()const;
|
int getPageSize()const;
|
||||||
@@ -74,7 +72,6 @@ namespace AlibabaCloud
|
|||||||
std::string dBClusterStatus_;
|
std::string dBClusterStatus_;
|
||||||
int pageNumber_;
|
int pageNumber_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string resourceGroupId_;
|
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
int pageSize_;
|
int pageSize_;
|
||||||
std::vector<Tag> tag_;
|
std::vector<Tag> tag_;
|
||||||
|
|||||||
@@ -39,39 +39,25 @@ namespace AlibabaCloud
|
|||||||
std::string value;
|
std::string value;
|
||||||
std::string key;
|
std::string key;
|
||||||
};
|
};
|
||||||
std::string storageResource;
|
|
||||||
std::string category;
|
|
||||||
std::string resourceGroupId;
|
|
||||||
std::string 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::vector<DBCluster::Tag> tags;
|
|
||||||
std::string engine;
|
|
||||||
long dBNodeStorage;
|
long dBNodeStorage;
|
||||||
std::string zoneId;
|
std::string category;
|
||||||
std::string vPCId;
|
|
||||||
std::string dBClusterStatus;
|
std::string dBClusterStatus;
|
||||||
std::string createTime;
|
std::string createTime;
|
||||||
std::string vSwitchId;
|
std::string dBClusterId;
|
||||||
std::string mode;
|
|
||||||
std::string dBClusterDescription;
|
std::string dBClusterDescription;
|
||||||
std::string computeResource;
|
|
||||||
std::string expired;
|
std::string expired;
|
||||||
std::string payType;
|
std::string payType;
|
||||||
std::string lockMode;
|
std::string lockMode;
|
||||||
std::string dBNodeClass;
|
std::string dBNodeClass;
|
||||||
std::string vPCCloudInstanceId;
|
std::string dBClusterType;
|
||||||
|
std::string dBVersion;
|
||||||
|
std::string dtsJobId;
|
||||||
|
long dBNodeCount;
|
||||||
|
std::string commodityCode;
|
||||||
std::string regionId;
|
std::string regionId;
|
||||||
std::string expireTime;
|
std::string expireTime;
|
||||||
std::string connectionString;
|
std::string lockReason;
|
||||||
|
std::vector<DBCluster::Tag> tags;
|
||||||
std::string rdsInstanceId;
|
std::string rdsInstanceId;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_
|
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_
|
||||||
#define ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_
|
#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -28,12 +28,12 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_ADB_EXPORT ModifyAuditLogConfigRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ADB_EXPORT DescribeLogStoreKeysRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ModifyAuditLogConfigRequest();
|
DescribeLogStoreKeysRequest();
|
||||||
~ModifyAuditLogConfigRequest();
|
~DescribeLogStoreKeysRequest();
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
long getResourceOwnerId()const;
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
@@ -41,29 +41,29 @@ namespace AlibabaCloud
|
|||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getRegionId()const;
|
std::string getRegionId()const;
|
||||||
void setRegionId(const std::string& regionId);
|
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;
|
std::string getResourceOwnerAccount()const;
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||||
std::string getDBClusterId()const;
|
|
||||||
void setDBClusterId(const std::string& dBClusterId);
|
|
||||||
std::string getOwnerAccount()const;
|
std::string getOwnerAccount()const;
|
||||||
void setOwnerAccount(const std::string& ownerAccount);
|
void setOwnerAccount(const std::string& ownerAccount);
|
||||||
long getOwnerId()const;
|
long getOwnerId()const;
|
||||||
void setOwnerId(long ownerId);
|
void setOwnerId(long ownerId);
|
||||||
std::string getAuditLogStatus()const;
|
|
||||||
void setAuditLogStatus(const std::string& auditLogStatus);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
|
std::string projectName_;
|
||||||
|
std::string logStoreName_;
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
std::string dBClusterId_;
|
|
||||||
std::string ownerAccount_;
|
std::string ownerAccount_;
|
||||||
long ownerId_;
|
long ownerId_;
|
||||||
std::string auditLogStatus_;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_
|
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_
|
||||||
@@ -14,36 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_RDS_MODEL_TERMINATEMIGRATETASKRESULT_H_
|
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSRESULT_H_
|
||||||
#define ALIBABACLOUD_RDS_MODEL_TERMINATEMIGRATETASKRESULT_H_
|
#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/rds/RdsExport.h>
|
#include <alibabacloud/adb/AdbExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Rds
|
namespace Adb
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_RDS_EXPORT TerminateMigrateTaskResult : public ServiceResult
|
class ALIBABACLOUD_ADB_EXPORT DescribeLogStoreKeysResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
TerminateMigrateTaskResult();
|
DescribeLogStoreKeysResult();
|
||||||
explicit TerminateMigrateTaskResult(const std::string &payload);
|
explicit DescribeLogStoreKeysResult(const std::string &payload);
|
||||||
~TerminateMigrateTaskResult();
|
~DescribeLogStoreKeysResult();
|
||||||
|
std::vector<std::string> getLogStoreKeys()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
|
std::vector<std::string> logStoreKeys_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_RDS_MODEL_TERMINATEMIGRATETASKRESULT_H_
|
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSRESULT_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_H_
|
||||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -28,12 +28,12 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogConfigRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ADB_EXPORT DescribeLoghubDetailRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DescribeAuditLogConfigRequest();
|
DescribeLoghubDetailRequest();
|
||||||
~DescribeAuditLogConfigRequest();
|
~DescribeLoghubDetailRequest();
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
long getResourceOwnerId()const;
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
@@ -41,26 +41,29 @@ namespace AlibabaCloud
|
|||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getRegionId()const;
|
std::string getRegionId()const;
|
||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string getProjectName()const;
|
||||||
|
void setProjectName(const std::string& projectName);
|
||||||
std::string getResourceOwnerAccount()const;
|
std::string getResourceOwnerAccount()const;
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||||
std::string getDBClusterId()const;
|
|
||||||
void setDBClusterId(const std::string& dBClusterId);
|
|
||||||
std::string getOwnerAccount()const;
|
std::string getOwnerAccount()const;
|
||||||
void setOwnerAccount(const std::string& ownerAccount);
|
void setOwnerAccount(const std::string& ownerAccount);
|
||||||
long getOwnerId()const;
|
long getOwnerId()const;
|
||||||
void setOwnerId(long ownerId);
|
void setOwnerId(long ownerId);
|
||||||
|
std::string getExportName()const;
|
||||||
|
void setExportName(const std::string& exportName);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
|
std::string projectName_;
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
std::string dBClusterId_;
|
|
||||||
std::string ownerAccount_;
|
std::string ownerAccount_;
|
||||||
long ownerId_;
|
long ownerId_;
|
||||||
|
std::string exportName_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_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_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_
|
||||||
@@ -1,72 +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_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_
|
|
||||||
@@ -1,70 +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_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_
|
|
||||||
@@ -39,12 +39,8 @@ namespace AlibabaCloud
|
|||||||
void setResourceOwnerId(long resourceOwnerId);
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getStorageResource()const;
|
|
||||||
void setStorageResource(const std::string& storageResource);
|
|
||||||
std::string getDBNodeClass()const;
|
std::string getDBNodeClass()const;
|
||||||
void setDBNodeClass(const std::string& dBNodeClass);
|
void setDBNodeClass(const std::string& dBNodeClass);
|
||||||
std::string getRegionId()const;
|
|
||||||
void setRegionId(const std::string& regionId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
std::string getResourceOwnerAccount()const;
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||||
std::string getDBClusterId()const;
|
std::string getDBClusterId()const;
|
||||||
@@ -57,28 +53,20 @@ namespace AlibabaCloud
|
|||||||
void setDBNodeGroupCount(const std::string& dBNodeGroupCount);
|
void setDBNodeGroupCount(const std::string& dBNodeGroupCount);
|
||||||
std::string getDBNodeStorage()const;
|
std::string getDBNodeStorage()const;
|
||||||
void setDBNodeStorage(const std::string& dBNodeStorage);
|
void setDBNodeStorage(const std::string& dBNodeStorage);
|
||||||
std::string getExecutorCount()const;
|
|
||||||
void setExecutorCount(const std::string& executorCount);
|
|
||||||
std::string getModifyType()const;
|
std::string getModifyType()const;
|
||||||
void setModifyType(const std::string& modifyType);
|
void setModifyType(const std::string& modifyType);
|
||||||
std::string getComputeResource()const;
|
|
||||||
void setComputeResource(const std::string& computeResource);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string storageResource_;
|
|
||||||
std::string dBNodeClass_;
|
std::string dBNodeClass_;
|
||||||
std::string regionId_;
|
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
std::string dBClusterId_;
|
std::string dBClusterId_;
|
||||||
std::string ownerAccount_;
|
std::string ownerAccount_;
|
||||||
long ownerId_;
|
long ownerId_;
|
||||||
std::string dBNodeGroupCount_;
|
std::string dBNodeGroupCount_;
|
||||||
std::string dBNodeStorage_;
|
std::string dBNodeStorage_;
|
||||||
std::string executorCount_;
|
|
||||||
std::string modifyType_;
|
std::string modifyType_;
|
||||||
std::string computeResource_;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -303,78 +303,6 @@ AdbClient::DescribeAllDataSourceOutcomeCallable AdbClient::describeAllDataSource
|
|||||||
return task->get_future();
|
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
|
AdbClient::DescribeAutoRenewAttributeOutcome AdbClient::describeAutoRenewAttribute(const DescribeAutoRenewAttributeRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -771,6 +699,78 @@ AdbClient::DescribeInclinedTablesOutcomeCallable AdbClient::describeInclinedTabl
|
|||||||
return task->get_future();
|
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
|
AdbClient::DescribeOperatorPermissionOutcome AdbClient::describeOperatorPermission(const DescribeOperatorPermissionRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1023,42 +1023,6 @@ AdbClient::DescribeTableDetailOutcomeCallable AdbClient::describeTableDetailCall
|
|||||||
return task->get_future();
|
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
|
AdbClient::DescribeTablesOutcome AdbClient::describeTables(const DescribeTablesRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1275,42 +1239,6 @@ AdbClient::ModifyAccountDescriptionOutcomeCallable AdbClient::modifyAccountDescr
|
|||||||
return task->get_future();
|
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
|
AdbClient::ModifyAutoRenewAttributeOutcome AdbClient::modifyAutoRenewAttribute(const ModifyAutoRenewAttributeRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -60,17 +60,6 @@ void CreateDBClusterRequest::setClientToken(const std::string& clientToken)
|
|||||||
setParameter("ClientToken", 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
|
std::string CreateDBClusterRequest::getAccessKeyId()const
|
||||||
{
|
{
|
||||||
return accessKeyId_;
|
return accessKeyId_;
|
||||||
@@ -82,39 +71,6 @@ void CreateDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
|||||||
setParameter("AccessKeyId", 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
|
std::string CreateDBClusterRequest::getRegionId()const
|
||||||
{
|
{
|
||||||
return regionId_;
|
return regionId_;
|
||||||
@@ -258,17 +214,6 @@ void CreateDBClusterRequest::setDBNodeStorage(const std::string& dBNodeStorage)
|
|||||||
setParameter("DBNodeStorage", 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
|
std::string CreateDBClusterRequest::getVPCId()const
|
||||||
{
|
{
|
||||||
return vPCId_;
|
return vPCId_;
|
||||||
@@ -291,17 +236,6 @@ void CreateDBClusterRequest::setZoneId(const std::string& zoneId)
|
|||||||
setParameter("ZoneId", 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
|
std::string CreateDBClusterRequest::getPayType()const
|
||||||
{
|
{
|
||||||
return payType_;
|
return payType_;
|
||||||
|
|||||||
@@ -43,16 +43,9 @@ void CreateDBClusterResult::parse(const std::string &payload)
|
|||||||
dBClusterId_ = value["DBClusterId"].asString();
|
dBClusterId_ = value["DBClusterId"].asString();
|
||||||
if(!value["OrderId"].isNull())
|
if(!value["OrderId"].isNull())
|
||||||
orderId_ = value["OrderId"].asString();
|
orderId_ = value["OrderId"].asString();
|
||||||
if(!value["ResourceGroupId"].isNull())
|
|
||||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateDBClusterResult::getResourceGroupId()const
|
|
||||||
{
|
|
||||||
return resourceGroupId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CreateDBClusterResult::getDBClusterId()const
|
std::string CreateDBClusterResult::getDBClusterId()const
|
||||||
{
|
{
|
||||||
return dBClusterId_;
|
return dBClusterId_;
|
||||||
|
|||||||
@@ -1,106 +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/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));
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,58 +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/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_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,227 +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/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);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,101 +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/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,17 +60,6 @@ void DescribeAutoRenewAttributeRequest::setAccessKeyId(const std::string& access
|
|||||||
setParameter("AccessKeyId", accessKeyId);
|
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
|
std::string DescribeAutoRenewAttributeRequest::getRegionId()const
|
||||||
{
|
{
|
||||||
return regionId_;
|
return regionId_;
|
||||||
|
|||||||
@@ -45,74 +45,39 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
|||||||
AvailableZone availableZoneListObject;
|
AvailableZone availableZoneListObject;
|
||||||
if(!valueAvailableZoneListAvailableZone["ZoneId"].isNull())
|
if(!valueAvailableZoneListAvailableZone["ZoneId"].isNull())
|
||||||
availableZoneListObject.zoneId = valueAvailableZoneListAvailableZone["ZoneId"].asString();
|
availableZoneListObject.zoneId = valueAvailableZoneListAvailableZone["ZoneId"].asString();
|
||||||
auto allSupportedModeNode = allAvailableZoneListNode["SupportedMode"]["SupportedModeItem"];
|
auto allSupportedSerialListNode = allAvailableZoneListNode["SupportedSerialList"]["SupportedSerial"];
|
||||||
for (auto allAvailableZoneListNodeSupportedModeSupportedModeItem : allSupportedModeNode)
|
for (auto allAvailableZoneListNodeSupportedSerialListSupportedSerial : allSupportedSerialListNode)
|
||||||
{
|
{
|
||||||
AvailableZone::SupportedModeItem supportedModeObject;
|
AvailableZone::SupportedSerial supportedSerialListObject;
|
||||||
if(!allAvailableZoneListNodeSupportedModeSupportedModeItem["Mode"].isNull())
|
if(!allAvailableZoneListNodeSupportedSerialListSupportedSerial["Serial"].isNull())
|
||||||
supportedModeObject.mode = allAvailableZoneListNodeSupportedModeSupportedModeItem["Mode"].asString();
|
supportedSerialListObject.serial = allAvailableZoneListNodeSupportedSerialListSupportedSerial["Serial"].asString();
|
||||||
auto allSupportedSerialListNode = allSupportedModeNode["SupportedSerialList"]["SupportedSerialListItem"];
|
auto allSupportedInstanceClassListNode = allSupportedSerialListNode["SupportedInstanceClassList"]["SupportedInstanceClass"];
|
||||||
for (auto allSupportedModeNodeSupportedSerialListSupportedSerialListItem : allSupportedSerialListNode)
|
for (auto allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass : allSupportedInstanceClassListNode)
|
||||||
{
|
{
|
||||||
AvailableZone::SupportedModeItem::SupportedSerialListItem supportedSerialListObject;
|
AvailableZone::SupportedSerial::SupportedInstanceClass supportedInstanceClassListObject;
|
||||||
if(!allSupportedModeNodeSupportedSerialListSupportedSerialListItem["Serial"].isNull())
|
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].isNull())
|
||||||
supportedSerialListObject.serial = allSupportedModeNodeSupportedSerialListSupportedSerialListItem["Serial"].asString();
|
supportedInstanceClassListObject.instanceClass = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].asString();
|
||||||
auto allSupportedFlexibleResourceNode = allSupportedSerialListNode["SupportedFlexibleResource"]["SupportedFlexibleResourceItem"];
|
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].isNull())
|
||||||
for (auto allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem : allSupportedFlexibleResourceNode)
|
supportedInstanceClassListObject.tips = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].asString();
|
||||||
|
auto allSupportedNodeCountListNode = allSupportedInstanceClassListNode["SupportedNodeCountList"]["SupportedNodeCount"];
|
||||||
|
for (auto allSupportedInstanceClassListNodeSupportedNodeCountListSupportedNodeCount : allSupportedNodeCountListNode)
|
||||||
{
|
{
|
||||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedFlexibleResourceItem supportedFlexibleResourceObject;
|
AvailableZone::SupportedSerial::SupportedInstanceClass::SupportedNodeCount supportedNodeCountListObject;
|
||||||
if(!allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].isNull())
|
auto nodeCountNode = value["NodeCount"];
|
||||||
supportedFlexibleResourceObject.storageType = allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].asString();
|
if(!nodeCountNode["MinCount"].isNull())
|
||||||
auto allSupportedStorageResource = value["SupportedStorageResource"]["SupportedStorageResource"];
|
supportedNodeCountListObject.nodeCount.minCount = nodeCountNode["MinCount"].asString();
|
||||||
for (auto value : allSupportedStorageResource)
|
if(!nodeCountNode["MaxCount"].isNull())
|
||||||
supportedFlexibleResourceObject.supportedStorageResource.push_back(value.asString());
|
supportedNodeCountListObject.nodeCount.maxCount = nodeCountNode["MaxCount"].asString();
|
||||||
auto allSupportedComputeResource = value["SupportedComputeResource"]["SupportedComputeResource"];
|
if(!nodeCountNode["Step"].isNull())
|
||||||
for (auto value : allSupportedComputeResource)
|
supportedNodeCountListObject.nodeCount.step = nodeCountNode["Step"].asString();
|
||||||
supportedFlexibleResourceObject.supportedComputeResource.push_back(value.asString());
|
auto allStorageSize = value["StorageSize"]["StorageSize"];
|
||||||
supportedSerialListObject.supportedFlexibleResource.push_back(supportedFlexibleResourceObject);
|
for (auto value : allStorageSize)
|
||||||
|
supportedNodeCountListObject.storageSize.push_back(value.asString());
|
||||||
|
supportedInstanceClassListObject.supportedNodeCountList.push_back(supportedNodeCountListObject);
|
||||||
}
|
}
|
||||||
auto allSupportedInstanceClassListNode = allSupportedSerialListNode["SupportedInstanceClassList"]["SupportedInstanceClass"];
|
supportedSerialListObject.supportedInstanceClassList.push_back(supportedInstanceClassListObject);
|
||||||
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.supportedMode.push_back(supportedModeObject);
|
availableZoneListObject.supportedSerialList.push_back(supportedSerialListObject);
|
||||||
}
|
}
|
||||||
availableZoneList_.push_back(availableZoneListObject);
|
availableZoneList_.push_back(availableZoneListObject);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,18 +99,6 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
|
|||||||
itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString();
|
itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString();
|
||||||
if(!valueItemsDBCluster["DtsJobId"].isNull())
|
if(!valueItemsDBCluster["DtsJobId"].isNull())
|
||||||
itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString();
|
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"];
|
auto allTagsNode = allItemsNode["Tags"]["Tag"];
|
||||||
for (auto allItemsNodeTagsTag : allTagsNode)
|
for (auto allItemsNodeTagsTag : allTagsNode)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -82,17 +82,6 @@ void DescribeDBClustersRequest::setAccessKeyId(const std::string& accessKeyId)
|
|||||||
setParameter("AccessKeyId", 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
|
std::string DescribeDBClustersRequest::getRegionId()const
|
||||||
{
|
{
|
||||||
return regionId_;
|
return regionId_;
|
||||||
|
|||||||
@@ -81,34 +81,6 @@ void DescribeDBClustersResult::parse(const std::string &payload)
|
|||||||
itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString();
|
itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString();
|
||||||
if(!valueItemsDBCluster["DtsJobId"].isNull())
|
if(!valueItemsDBCluster["DtsJobId"].isNull())
|
||||||
itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString();
|
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"];
|
auto allTagsNode = allItemsNode["Tags"]["Tag"];
|
||||||
for (auto allItemsNodeTagsTag : allTagsNode)
|
for (auto allItemsNodeTagsTag : allTagsNode)
|
||||||
{
|
{
|
||||||
|
|||||||
117
adb/src/model/DescribeLogStoreKeysRequest.cc
Normal file
117
adb/src/model/DescribeLogStoreKeysRequest.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/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));
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,31 +14,39 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/r-kvstore/model/InitializeKvstorePermissionResult.h>
|
#include <alibabacloud/adb/model/DescribeLogStoreKeysResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::R_kvstore;
|
using namespace AlibabaCloud::Adb;
|
||||||
using namespace AlibabaCloud::R_kvstore::Model;
|
using namespace AlibabaCloud::Adb::Model;
|
||||||
|
|
||||||
InitializeKvstorePermissionResult::InitializeKvstorePermissionResult() :
|
DescribeLogStoreKeysResult::DescribeLogStoreKeysResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
InitializeKvstorePermissionResult::InitializeKvstorePermissionResult(const std::string &payload) :
|
DescribeLogStoreKeysResult::DescribeLogStoreKeysResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
InitializeKvstorePermissionResult::~InitializeKvstorePermissionResult()
|
DescribeLogStoreKeysResult::~DescribeLogStoreKeysResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void InitializeKvstorePermissionResult::parse(const std::string &payload)
|
void DescribeLogStoreKeysResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
117
adb/src/model/DescribeLoghubDetailRequest.cc
Normal file
117
adb/src/model/DescribeLoghubDetailRequest.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/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);
|
||||||
|
}
|
||||||
|
|
||||||
96
adb/src/model/DescribeLoghubDetailResult.cc
Normal file
96
adb/src/model/DescribeLoghubDetailResult.cc
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,128 +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/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));
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,105 +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/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_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -49,17 +49,6 @@ void ModifyDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
|||||||
setParameter("AccessKeyId", 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
|
std::string ModifyDBClusterRequest::getDBNodeClass()const
|
||||||
{
|
{
|
||||||
return dBNodeClass_;
|
return dBNodeClass_;
|
||||||
@@ -71,17 +60,6 @@ void ModifyDBClusterRequest::setDBNodeClass(const std::string& dBNodeClass)
|
|||||||
setParameter("DBNodeClass", 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
|
std::string ModifyDBClusterRequest::getResourceOwnerAccount()const
|
||||||
{
|
{
|
||||||
return resourceOwnerAccount_;
|
return resourceOwnerAccount_;
|
||||||
@@ -148,17 +126,6 @@ void ModifyDBClusterRequest::setDBNodeStorage(const std::string& dBNodeStorage)
|
|||||||
setParameter("DBNodeStorage", 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
|
std::string ModifyDBClusterRequest::getModifyType()const
|
||||||
{
|
{
|
||||||
return modifyType_;
|
return modifyType_;
|
||||||
@@ -170,14 +137,3 @@ void ModifyDBClusterRequest::setModifyType(const std::string& modifyType)
|
|||||||
setParameter("ModifyType", modifyType);
|
setParameter("ModifyType", modifyType);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ModifyDBClusterRequest::getComputeResource()const
|
|
||||||
{
|
|
||||||
return computeResource_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifyDBClusterRequest::setComputeResource(const std::string& computeResource)
|
|
||||||
{
|
|
||||||
computeResource_ = computeResource;
|
|
||||||
setParameter("ComputeResource", computeResource);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,53 +21,29 @@ set(address-purification_public_header
|
|||||||
include/alibabacloud/address-purification/Address_purificationExport.h )
|
include/alibabacloud/address-purification/Address_purificationExport.h )
|
||||||
|
|
||||||
set(address-purification_public_header_model
|
set(address-purification_public_header_model
|
||||||
include/alibabacloud/address-purification/model/ClassifyPOIRequest.h
|
include/alibabacloud/address-purification/model/DescribeProductRequest.h
|
||||||
include/alibabacloud/address-purification/model/ClassifyPOIResult.h
|
include/alibabacloud/address-purification/model/DescribeProductResult.h
|
||||||
include/alibabacloud/address-purification/model/CompleteAddressRequest.h
|
include/alibabacloud/address-purification/model/GetAlgorithmResultRequest.h
|
||||||
include/alibabacloud/address-purification/model/CompleteAddressResult.h
|
include/alibabacloud/address-purification/model/GetAlgorithmResultResult.h
|
||||||
include/alibabacloud/address-purification/model/CorrectAddressRequest.h
|
include/alibabacloud/address-purification/model/GetConsoleResultRequest.h
|
||||||
include/alibabacloud/address-purification/model/CorrectAddressResult.h
|
include/alibabacloud/address-purification/model/GetConsoleResultResult.h
|
||||||
include/alibabacloud/address-purification/model/ExtractAddressRequest.h
|
include/alibabacloud/address-purification/model/GetReportRequest.h
|
||||||
include/alibabacloud/address-purification/model/ExtractAddressResult.h
|
include/alibabacloud/address-purification/model/GetReportResult.h
|
||||||
include/alibabacloud/address-purification/model/ExtractNameRequest.h
|
include/alibabacloud/address-purification/model/GetUserInfomationRequest.h
|
||||||
include/alibabacloud/address-purification/model/ExtractNameResult.h
|
include/alibabacloud/address-purification/model/GetUserInfomationResult.h )
|
||||||
include/alibabacloud/address-purification/model/ExtractPhoneRequest.h
|
|
||||||
include/alibabacloud/address-purification/model/ExtractPhoneResult.h
|
|
||||||
include/alibabacloud/address-purification/model/GetAddressDivisionCodeRequest.h
|
|
||||||
include/alibabacloud/address-purification/model/GetAddressDivisionCodeResult.h
|
|
||||||
include/alibabacloud/address-purification/model/GetAddressSimilarityRequest.h
|
|
||||||
include/alibabacloud/address-purification/model/GetAddressSimilarityResult.h
|
|
||||||
include/alibabacloud/address-purification/model/GetZipcodeRequest.h
|
|
||||||
include/alibabacloud/address-purification/model/GetZipcodeResult.h
|
|
||||||
include/alibabacloud/address-purification/model/StructureAddressRequest.h
|
|
||||||
include/alibabacloud/address-purification/model/StructureAddressResult.h
|
|
||||||
include/alibabacloud/address-purification/model/UpdateProjectRequest.h
|
|
||||||
include/alibabacloud/address-purification/model/UpdateProjectResult.h )
|
|
||||||
|
|
||||||
set(address-purification_src
|
set(address-purification_src
|
||||||
src/Address-purificationClient.cc
|
src/Address-purificationClient.cc
|
||||||
src/model/ClassifyPOIRequest.cc
|
src/model/DescribeProductRequest.cc
|
||||||
src/model/ClassifyPOIResult.cc
|
src/model/DescribeProductResult.cc
|
||||||
src/model/CompleteAddressRequest.cc
|
src/model/GetAlgorithmResultRequest.cc
|
||||||
src/model/CompleteAddressResult.cc
|
src/model/GetAlgorithmResultResult.cc
|
||||||
src/model/CorrectAddressRequest.cc
|
src/model/GetConsoleResultRequest.cc
|
||||||
src/model/CorrectAddressResult.cc
|
src/model/GetConsoleResultResult.cc
|
||||||
src/model/ExtractAddressRequest.cc
|
src/model/GetReportRequest.cc
|
||||||
src/model/ExtractAddressResult.cc
|
src/model/GetReportResult.cc
|
||||||
src/model/ExtractNameRequest.cc
|
src/model/GetUserInfomationRequest.cc
|
||||||
src/model/ExtractNameResult.cc
|
src/model/GetUserInfomationResult.cc )
|
||||||
src/model/ExtractPhoneRequest.cc
|
|
||||||
src/model/ExtractPhoneResult.cc
|
|
||||||
src/model/GetAddressDivisionCodeRequest.cc
|
|
||||||
src/model/GetAddressDivisionCodeResult.cc
|
|
||||||
src/model/GetAddressSimilarityRequest.cc
|
|
||||||
src/model/GetAddressSimilarityResult.cc
|
|
||||||
src/model/GetZipcodeRequest.cc
|
|
||||||
src/model/GetZipcodeResult.cc
|
|
||||||
src/model/StructureAddressRequest.cc
|
|
||||||
src/model/StructureAddressResult.cc
|
|
||||||
src/model/UpdateProjectRequest.cc
|
|
||||||
src/model/UpdateProjectResult.cc )
|
|
||||||
|
|
||||||
add_library(address-purification ${LIB_TYPE}
|
add_library(address-purification ${LIB_TYPE}
|
||||||
${address-purification_public_header}
|
${address-purification_public_header}
|
||||||
|
|||||||
@@ -22,28 +22,16 @@
|
|||||||
#include <alibabacloud/core/EndpointProvider.h>
|
#include <alibabacloud/core/EndpointProvider.h>
|
||||||
#include <alibabacloud/core/RpcServiceClient.h>
|
#include <alibabacloud/core/RpcServiceClient.h>
|
||||||
#include "Address_purificationExport.h"
|
#include "Address_purificationExport.h"
|
||||||
#include "model/ClassifyPOIRequest.h"
|
#include "model/DescribeProductRequest.h"
|
||||||
#include "model/ClassifyPOIResult.h"
|
#include "model/DescribeProductResult.h"
|
||||||
#include "model/CompleteAddressRequest.h"
|
#include "model/GetAlgorithmResultRequest.h"
|
||||||
#include "model/CompleteAddressResult.h"
|
#include "model/GetAlgorithmResultResult.h"
|
||||||
#include "model/CorrectAddressRequest.h"
|
#include "model/GetConsoleResultRequest.h"
|
||||||
#include "model/CorrectAddressResult.h"
|
#include "model/GetConsoleResultResult.h"
|
||||||
#include "model/ExtractAddressRequest.h"
|
#include "model/GetReportRequest.h"
|
||||||
#include "model/ExtractAddressResult.h"
|
#include "model/GetReportResult.h"
|
||||||
#include "model/ExtractNameRequest.h"
|
#include "model/GetUserInfomationRequest.h"
|
||||||
#include "model/ExtractNameResult.h"
|
#include "model/GetUserInfomationResult.h"
|
||||||
#include "model/ExtractPhoneRequest.h"
|
|
||||||
#include "model/ExtractPhoneResult.h"
|
|
||||||
#include "model/GetAddressDivisionCodeRequest.h"
|
|
||||||
#include "model/GetAddressDivisionCodeResult.h"
|
|
||||||
#include "model/GetAddressSimilarityRequest.h"
|
|
||||||
#include "model/GetAddressSimilarityResult.h"
|
|
||||||
#include "model/GetZipcodeRequest.h"
|
|
||||||
#include "model/GetZipcodeResult.h"
|
|
||||||
#include "model/StructureAddressRequest.h"
|
|
||||||
#include "model/StructureAddressResult.h"
|
|
||||||
#include "model/UpdateProjectRequest.h"
|
|
||||||
#include "model/UpdateProjectResult.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
@@ -53,77 +41,41 @@ namespace AlibabaCloud
|
|||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT Address_purificationClient : public RpcServiceClient
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT Address_purificationClient : public RpcServiceClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef Outcome<Error, Model::ClassifyPOIResult> ClassifyPOIOutcome;
|
typedef Outcome<Error, Model::DescribeProductResult> DescribeProductOutcome;
|
||||||
typedef std::future<ClassifyPOIOutcome> ClassifyPOIOutcomeCallable;
|
typedef std::future<DescribeProductOutcome> DescribeProductOutcomeCallable;
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::ClassifyPOIRequest&, const ClassifyPOIOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ClassifyPOIAsyncHandler;
|
typedef std::function<void(const Address_purificationClient*, const Model::DescribeProductRequest&, const DescribeProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProductAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CompleteAddressResult> CompleteAddressOutcome;
|
typedef Outcome<Error, Model::GetAlgorithmResultResult> GetAlgorithmResultOutcome;
|
||||||
typedef std::future<CompleteAddressOutcome> CompleteAddressOutcomeCallable;
|
typedef std::future<GetAlgorithmResultOutcome> GetAlgorithmResultOutcomeCallable;
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::CompleteAddressRequest&, const CompleteAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompleteAddressAsyncHandler;
|
typedef std::function<void(const Address_purificationClient*, const Model::GetAlgorithmResultRequest&, const GetAlgorithmResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAlgorithmResultAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CorrectAddressResult> CorrectAddressOutcome;
|
typedef Outcome<Error, Model::GetConsoleResultResult> GetConsoleResultOutcome;
|
||||||
typedef std::future<CorrectAddressOutcome> CorrectAddressOutcomeCallable;
|
typedef std::future<GetConsoleResultOutcome> GetConsoleResultOutcomeCallable;
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::CorrectAddressRequest&, const CorrectAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CorrectAddressAsyncHandler;
|
typedef std::function<void(const Address_purificationClient*, const Model::GetConsoleResultRequest&, const GetConsoleResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsoleResultAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ExtractAddressResult> ExtractAddressOutcome;
|
typedef Outcome<Error, Model::GetReportResult> GetReportOutcome;
|
||||||
typedef std::future<ExtractAddressOutcome> ExtractAddressOutcomeCallable;
|
typedef std::future<GetReportOutcome> GetReportOutcomeCallable;
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::ExtractAddressRequest&, const ExtractAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExtractAddressAsyncHandler;
|
typedef std::function<void(const Address_purificationClient*, const Model::GetReportRequest&, const GetReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetReportAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ExtractNameResult> ExtractNameOutcome;
|
typedef Outcome<Error, Model::GetUserInfomationResult> GetUserInfomationOutcome;
|
||||||
typedef std::future<ExtractNameOutcome> ExtractNameOutcomeCallable;
|
typedef std::future<GetUserInfomationOutcome> GetUserInfomationOutcomeCallable;
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::ExtractNameRequest&, const ExtractNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExtractNameAsyncHandler;
|
typedef std::function<void(const Address_purificationClient*, const Model::GetUserInfomationRequest&, const GetUserInfomationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserInfomationAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ExtractPhoneResult> ExtractPhoneOutcome;
|
|
||||||
typedef std::future<ExtractPhoneOutcome> ExtractPhoneOutcomeCallable;
|
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::ExtractPhoneRequest&, const ExtractPhoneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExtractPhoneAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::GetAddressDivisionCodeResult> GetAddressDivisionCodeOutcome;
|
|
||||||
typedef std::future<GetAddressDivisionCodeOutcome> GetAddressDivisionCodeOutcomeCallable;
|
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::GetAddressDivisionCodeRequest&, const GetAddressDivisionCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAddressDivisionCodeAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::GetAddressSimilarityResult> GetAddressSimilarityOutcome;
|
|
||||||
typedef std::future<GetAddressSimilarityOutcome> GetAddressSimilarityOutcomeCallable;
|
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::GetAddressSimilarityRequest&, const GetAddressSimilarityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAddressSimilarityAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::GetZipcodeResult> GetZipcodeOutcome;
|
|
||||||
typedef std::future<GetZipcodeOutcome> GetZipcodeOutcomeCallable;
|
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::GetZipcodeRequest&, const GetZipcodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetZipcodeAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::StructureAddressResult> StructureAddressOutcome;
|
|
||||||
typedef std::future<StructureAddressOutcome> StructureAddressOutcomeCallable;
|
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::StructureAddressRequest&, const StructureAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StructureAddressAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::UpdateProjectResult> UpdateProjectOutcome;
|
|
||||||
typedef std::future<UpdateProjectOutcome> UpdateProjectOutcomeCallable;
|
|
||||||
typedef std::function<void(const Address_purificationClient*, const Model::UpdateProjectRequest&, const UpdateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProjectAsyncHandler;
|
|
||||||
|
|
||||||
Address_purificationClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
Address_purificationClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||||
Address_purificationClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
Address_purificationClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||||
Address_purificationClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
Address_purificationClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||||
~Address_purificationClient();
|
~Address_purificationClient();
|
||||||
ClassifyPOIOutcome classifyPOI(const Model::ClassifyPOIRequest &request)const;
|
DescribeProductOutcome describeProduct(const Model::DescribeProductRequest &request)const;
|
||||||
void classifyPOIAsync(const Model::ClassifyPOIRequest& request, const ClassifyPOIAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeProductAsync(const Model::DescribeProductRequest& request, const DescribeProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ClassifyPOIOutcomeCallable classifyPOICallable(const Model::ClassifyPOIRequest& request) const;
|
DescribeProductOutcomeCallable describeProductCallable(const Model::DescribeProductRequest& request) const;
|
||||||
CompleteAddressOutcome completeAddress(const Model::CompleteAddressRequest &request)const;
|
GetAlgorithmResultOutcome getAlgorithmResult(const Model::GetAlgorithmResultRequest &request)const;
|
||||||
void completeAddressAsync(const Model::CompleteAddressRequest& request, const CompleteAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getAlgorithmResultAsync(const Model::GetAlgorithmResultRequest& request, const GetAlgorithmResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CompleteAddressOutcomeCallable completeAddressCallable(const Model::CompleteAddressRequest& request) const;
|
GetAlgorithmResultOutcomeCallable getAlgorithmResultCallable(const Model::GetAlgorithmResultRequest& request) const;
|
||||||
CorrectAddressOutcome correctAddress(const Model::CorrectAddressRequest &request)const;
|
GetConsoleResultOutcome getConsoleResult(const Model::GetConsoleResultRequest &request)const;
|
||||||
void correctAddressAsync(const Model::CorrectAddressRequest& request, const CorrectAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getConsoleResultAsync(const Model::GetConsoleResultRequest& request, const GetConsoleResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CorrectAddressOutcomeCallable correctAddressCallable(const Model::CorrectAddressRequest& request) const;
|
GetConsoleResultOutcomeCallable getConsoleResultCallable(const Model::GetConsoleResultRequest& request) const;
|
||||||
ExtractAddressOutcome extractAddress(const Model::ExtractAddressRequest &request)const;
|
GetReportOutcome getReport(const Model::GetReportRequest &request)const;
|
||||||
void extractAddressAsync(const Model::ExtractAddressRequest& request, const ExtractAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getReportAsync(const Model::GetReportRequest& request, const GetReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ExtractAddressOutcomeCallable extractAddressCallable(const Model::ExtractAddressRequest& request) const;
|
GetReportOutcomeCallable getReportCallable(const Model::GetReportRequest& request) const;
|
||||||
ExtractNameOutcome extractName(const Model::ExtractNameRequest &request)const;
|
GetUserInfomationOutcome getUserInfomation(const Model::GetUserInfomationRequest &request)const;
|
||||||
void extractNameAsync(const Model::ExtractNameRequest& request, const ExtractNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getUserInfomationAsync(const Model::GetUserInfomationRequest& request, const GetUserInfomationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ExtractNameOutcomeCallable extractNameCallable(const Model::ExtractNameRequest& request) const;
|
GetUserInfomationOutcomeCallable getUserInfomationCallable(const Model::GetUserInfomationRequest& request) const;
|
||||||
ExtractPhoneOutcome extractPhone(const Model::ExtractPhoneRequest &request)const;
|
|
||||||
void extractPhoneAsync(const Model::ExtractPhoneRequest& request, const ExtractPhoneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
ExtractPhoneOutcomeCallable extractPhoneCallable(const Model::ExtractPhoneRequest& request) const;
|
|
||||||
GetAddressDivisionCodeOutcome getAddressDivisionCode(const Model::GetAddressDivisionCodeRequest &request)const;
|
|
||||||
void getAddressDivisionCodeAsync(const Model::GetAddressDivisionCodeRequest& request, const GetAddressDivisionCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
GetAddressDivisionCodeOutcomeCallable getAddressDivisionCodeCallable(const Model::GetAddressDivisionCodeRequest& request) const;
|
|
||||||
GetAddressSimilarityOutcome getAddressSimilarity(const Model::GetAddressSimilarityRequest &request)const;
|
|
||||||
void getAddressSimilarityAsync(const Model::GetAddressSimilarityRequest& request, const GetAddressSimilarityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
GetAddressSimilarityOutcomeCallable getAddressSimilarityCallable(const Model::GetAddressSimilarityRequest& request) const;
|
|
||||||
GetZipcodeOutcome getZipcode(const Model::GetZipcodeRequest &request)const;
|
|
||||||
void getZipcodeAsync(const Model::GetZipcodeRequest& request, const GetZipcodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
GetZipcodeOutcomeCallable getZipcodeCallable(const Model::GetZipcodeRequest& request) const;
|
|
||||||
StructureAddressOutcome structureAddress(const Model::StructureAddressRequest &request)const;
|
|
||||||
void structureAddressAsync(const Model::StructureAddressRequest& request, const StructureAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
StructureAddressOutcomeCallable structureAddressCallable(const Model::StructureAddressRequest& request) const;
|
|
||||||
UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const;
|
|
||||||
void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||||
|
|||||||
@@ -1,63 +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_ADDRESS_PURIFICATION_MODEL_CLASSIFYPOIREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CLASSIFYPOIREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ClassifyPOIRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
ClassifyPOIRequest();
|
|
||||||
~ClassifyPOIRequest();
|
|
||||||
|
|
||||||
std::string getDefaultProvince()const;
|
|
||||||
void setDefaultProvince(const std::string& defaultProvince);
|
|
||||||
std::string getServiceCode()const;
|
|
||||||
void setServiceCode(const std::string& serviceCode);
|
|
||||||
std::string getDefaultCity()const;
|
|
||||||
void setDefaultCity(const std::string& defaultCity);
|
|
||||||
std::string getDefaultDistrict()const;
|
|
||||||
void setDefaultDistrict(const std::string& defaultDistrict);
|
|
||||||
std::string getAppKey()const;
|
|
||||||
void setAppKey(const std::string& appKey);
|
|
||||||
std::string getText()const;
|
|
||||||
void setText(const std::string& text);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string defaultProvince_;
|
|
||||||
std::string serviceCode_;
|
|
||||||
std::string defaultCity_;
|
|
||||||
std::string defaultDistrict_;
|
|
||||||
std::string appKey_;
|
|
||||||
std::string text_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CLASSIFYPOIREQUEST_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_ADDRESS_PURIFICATION_MODEL_CLASSIFYPOIRESULT_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CLASSIFYPOIRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ClassifyPOIResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
ClassifyPOIResult();
|
|
||||||
explicit ClassifyPOIResult(const std::string &payload);
|
|
||||||
~ClassifyPOIResult();
|
|
||||||
std::string getData()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string data_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CLASSIFYPOIRESULT_H_
|
|
||||||
@@ -1,63 +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_ADDRESS_PURIFICATION_MODEL_COMPLETEADDRESSREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_COMPLETEADDRESSREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT CompleteAddressRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
CompleteAddressRequest();
|
|
||||||
~CompleteAddressRequest();
|
|
||||||
|
|
||||||
std::string getDefaultProvince()const;
|
|
||||||
void setDefaultProvince(const std::string& defaultProvince);
|
|
||||||
std::string getServiceCode()const;
|
|
||||||
void setServiceCode(const std::string& serviceCode);
|
|
||||||
std::string getDefaultCity()const;
|
|
||||||
void setDefaultCity(const std::string& defaultCity);
|
|
||||||
std::string getDefaultDistrict()const;
|
|
||||||
void setDefaultDistrict(const std::string& defaultDistrict);
|
|
||||||
std::string getAppKey()const;
|
|
||||||
void setAppKey(const std::string& appKey);
|
|
||||||
std::string getText()const;
|
|
||||||
void setText(const std::string& text);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string defaultProvince_;
|
|
||||||
std::string serviceCode_;
|
|
||||||
std::string defaultCity_;
|
|
||||||
std::string defaultDistrict_;
|
|
||||||
std::string appKey_;
|
|
||||||
std::string text_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_COMPLETEADDRESSREQUEST_H_
|
|
||||||
@@ -1,63 +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_ADDRESS_PURIFICATION_MODEL_CORRECTADDRESSREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CORRECTADDRESSREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT CorrectAddressRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
CorrectAddressRequest();
|
|
||||||
~CorrectAddressRequest();
|
|
||||||
|
|
||||||
std::string getDefaultProvince()const;
|
|
||||||
void setDefaultProvince(const std::string& defaultProvince);
|
|
||||||
std::string getServiceCode()const;
|
|
||||||
void setServiceCode(const std::string& serviceCode);
|
|
||||||
std::string getDefaultCity()const;
|
|
||||||
void setDefaultCity(const std::string& defaultCity);
|
|
||||||
std::string getDefaultDistrict()const;
|
|
||||||
void setDefaultDistrict(const std::string& defaultDistrict);
|
|
||||||
std::string getAppKey()const;
|
|
||||||
void setAppKey(const std::string& appKey);
|
|
||||||
std::string getText()const;
|
|
||||||
void setText(const std::string& text);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string defaultProvince_;
|
|
||||||
std::string serviceCode_;
|
|
||||||
std::string defaultCity_;
|
|
||||||
std::string defaultDistrict_;
|
|
||||||
std::string appKey_;
|
|
||||||
std::string text_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CORRECTADDRESSREQUEST_H_
|
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_UPDATEPROJECTREQUEST_H_
|
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTREQUEST_H_
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_UPDATEPROJECTREQUEST_H_
|
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -28,12 +28,12 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT UpdateProjectRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT DescribeProductRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UpdateProjectRequest();
|
DescribeProductRequest();
|
||||||
~UpdateProjectRequest();
|
~DescribeProductRequest();
|
||||||
|
|
||||||
std::string getServiceCode()const;
|
std::string getServiceCode()const;
|
||||||
void setServiceCode(const std::string& serviceCode);
|
void setServiceCode(const std::string& serviceCode);
|
||||||
@@ -48,4 +48,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_UPDATEPROJECTREQUEST_H_
|
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTREQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTADDRESSRESULT_H_
|
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTRESULT_H_
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTADDRESSRESULT_H_
|
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,23 +29,29 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ExtractAddressResult : public ServiceResult
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT DescribeProductResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
ExtractAddressResult();
|
DescribeProductResult();
|
||||||
explicit ExtractAddressResult(const std::string &payload);
|
explicit DescribeProductResult(const std::string &payload);
|
||||||
~ExtractAddressResult();
|
~DescribeProductResult();
|
||||||
std::string getData()const;
|
std::string getData()const;
|
||||||
|
std::string getErrMessage()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
std::string getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string data_;
|
std::string data_;
|
||||||
|
std::string errMessage_;
|
||||||
|
std::string code_;
|
||||||
|
std::string success_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTADDRESSRESULT_H_
|
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTRESULT_H_
|
||||||
@@ -1,63 +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_ADDRESS_PURIFICATION_MODEL_EXTRACTADDRESSREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTADDRESSREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ExtractAddressRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
ExtractAddressRequest();
|
|
||||||
~ExtractAddressRequest();
|
|
||||||
|
|
||||||
std::string getDefaultProvince()const;
|
|
||||||
void setDefaultProvince(const std::string& defaultProvince);
|
|
||||||
std::string getServiceCode()const;
|
|
||||||
void setServiceCode(const std::string& serviceCode);
|
|
||||||
std::string getDefaultCity()const;
|
|
||||||
void setDefaultCity(const std::string& defaultCity);
|
|
||||||
std::string getDefaultDistrict()const;
|
|
||||||
void setDefaultDistrict(const std::string& defaultDistrict);
|
|
||||||
std::string getAppKey()const;
|
|
||||||
void setAppKey(const std::string& appKey);
|
|
||||||
std::string getText()const;
|
|
||||||
void setText(const std::string& text);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string defaultProvince_;
|
|
||||||
std::string serviceCode_;
|
|
||||||
std::string defaultCity_;
|
|
||||||
std::string defaultDistrict_;
|
|
||||||
std::string appKey_;
|
|
||||||
std::string text_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTADDRESSREQUEST_H_
|
|
||||||
@@ -1,63 +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_ADDRESS_PURIFICATION_MODEL_EXTRACTNAMEREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTNAMEREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ExtractNameRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
ExtractNameRequest();
|
|
||||||
~ExtractNameRequest();
|
|
||||||
|
|
||||||
std::string getDefaultProvince()const;
|
|
||||||
void setDefaultProvince(const std::string& defaultProvince);
|
|
||||||
std::string getServiceCode()const;
|
|
||||||
void setServiceCode(const std::string& serviceCode);
|
|
||||||
std::string getDefaultCity()const;
|
|
||||||
void setDefaultCity(const std::string& defaultCity);
|
|
||||||
std::string getDefaultDistrict()const;
|
|
||||||
void setDefaultDistrict(const std::string& defaultDistrict);
|
|
||||||
std::string getAppKey()const;
|
|
||||||
void setAppKey(const std::string& appKey);
|
|
||||||
std::string getText()const;
|
|
||||||
void setText(const std::string& text);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string defaultProvince_;
|
|
||||||
std::string serviceCode_;
|
|
||||||
std::string defaultCity_;
|
|
||||||
std::string defaultDistrict_;
|
|
||||||
std::string appKey_;
|
|
||||||
std::string text_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTNAMEREQUEST_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_ADDRESS_PURIFICATION_MODEL_EXTRACTNAMERESULT_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTNAMERESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ExtractNameResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
ExtractNameResult();
|
|
||||||
explicit ExtractNameResult(const std::string &payload);
|
|
||||||
~ExtractNameResult();
|
|
||||||
std::string getData()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string data_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTNAMERESULT_H_
|
|
||||||
@@ -1,63 +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_ADDRESS_PURIFICATION_MODEL_EXTRACTPHONEREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTPHONEREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ExtractPhoneRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
ExtractPhoneRequest();
|
|
||||||
~ExtractPhoneRequest();
|
|
||||||
|
|
||||||
std::string getDefaultProvince()const;
|
|
||||||
void setDefaultProvince(const std::string& defaultProvince);
|
|
||||||
std::string getServiceCode()const;
|
|
||||||
void setServiceCode(const std::string& serviceCode);
|
|
||||||
std::string getDefaultCity()const;
|
|
||||||
void setDefaultCity(const std::string& defaultCity);
|
|
||||||
std::string getDefaultDistrict()const;
|
|
||||||
void setDefaultDistrict(const std::string& defaultDistrict);
|
|
||||||
std::string getAppKey()const;
|
|
||||||
void setAppKey(const std::string& appKey);
|
|
||||||
std::string getText()const;
|
|
||||||
void setText(const std::string& text);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string defaultProvince_;
|
|
||||||
std::string serviceCode_;
|
|
||||||
std::string defaultCity_;
|
|
||||||
std::string defaultDistrict_;
|
|
||||||
std::string appKey_;
|
|
||||||
std::string text_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTPHONEREQUEST_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_ADDRESS_PURIFICATION_MODEL_EXTRACTPHONERESULT_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTPHONERESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ExtractPhoneResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
ExtractPhoneResult();
|
|
||||||
explicit ExtractPhoneResult(const std::string &payload);
|
|
||||||
~ExtractPhoneResult();
|
|
||||||
std::string getData()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string data_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTPHONERESULT_H_
|
|
||||||
@@ -1,63 +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_ADDRESS_PURIFICATION_MODEL_GETADDRESSDIVISIONCODEREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSDIVISIONCODEREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetAddressDivisionCodeRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
GetAddressDivisionCodeRequest();
|
|
||||||
~GetAddressDivisionCodeRequest();
|
|
||||||
|
|
||||||
std::string getDefaultProvince()const;
|
|
||||||
void setDefaultProvince(const std::string& defaultProvince);
|
|
||||||
std::string getServiceCode()const;
|
|
||||||
void setServiceCode(const std::string& serviceCode);
|
|
||||||
std::string getDefaultCity()const;
|
|
||||||
void setDefaultCity(const std::string& defaultCity);
|
|
||||||
std::string getDefaultDistrict()const;
|
|
||||||
void setDefaultDistrict(const std::string& defaultDistrict);
|
|
||||||
std::string getAppKey()const;
|
|
||||||
void setAppKey(const std::string& appKey);
|
|
||||||
std::string getText()const;
|
|
||||||
void setText(const std::string& text);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string defaultProvince_;
|
|
||||||
std::string serviceCode_;
|
|
||||||
std::string defaultCity_;
|
|
||||||
std::string defaultDistrict_;
|
|
||||||
std::string appKey_;
|
|
||||||
std::string text_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSDIVISIONCODEREQUEST_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_ADDRESS_PURIFICATION_MODEL_GETADDRESSDIVISIONCODERESULT_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSDIVISIONCODERESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetAddressDivisionCodeResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
GetAddressDivisionCodeResult();
|
|
||||||
explicit GetAddressDivisionCodeResult(const std::string &payload);
|
|
||||||
~GetAddressDivisionCodeResult();
|
|
||||||
std::string getData()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string data_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSDIVISIONCODERESULT_H_
|
|
||||||
@@ -1,63 +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_ADDRESS_PURIFICATION_MODEL_GETADDRESSSIMILARITYREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSSIMILARITYREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetAddressSimilarityRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
GetAddressSimilarityRequest();
|
|
||||||
~GetAddressSimilarityRequest();
|
|
||||||
|
|
||||||
std::string getDefaultProvince()const;
|
|
||||||
void setDefaultProvince(const std::string& defaultProvince);
|
|
||||||
std::string getServiceCode()const;
|
|
||||||
void setServiceCode(const std::string& serviceCode);
|
|
||||||
std::string getDefaultCity()const;
|
|
||||||
void setDefaultCity(const std::string& defaultCity);
|
|
||||||
std::string getDefaultDistrict()const;
|
|
||||||
void setDefaultDistrict(const std::string& defaultDistrict);
|
|
||||||
std::string getAppKey()const;
|
|
||||||
void setAppKey(const std::string& appKey);
|
|
||||||
std::string getText()const;
|
|
||||||
void setText(const std::string& text);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string defaultProvince_;
|
|
||||||
std::string serviceCode_;
|
|
||||||
std::string defaultCity_;
|
|
||||||
std::string defaultDistrict_;
|
|
||||||
std::string appKey_;
|
|
||||||
std::string text_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSSIMILARITYREQUEST_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_ADDRESS_PURIFICATION_MODEL_GETADDRESSSIMILARITYRESULT_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSSIMILARITYRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetAddressSimilarityResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
GetAddressSimilarityResult();
|
|
||||||
explicit GetAddressSimilarityResult(const std::string &payload);
|
|
||||||
~GetAddressSimilarityResult();
|
|
||||||
std::string getData()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string data_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSSIMILARITYRESULT_H_
|
|
||||||
@@ -14,38 +14,41 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMREQUEST_H_
|
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTREQUEST_H_
|
||||||
#define ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMREQUEST_H_
|
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Alinlp
|
namespace Address_purification
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_ALINLP_EXPORT GetDpChEcomRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetAlgorithmResultRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GetDpChEcomRequest();
|
GetAlgorithmResultRequest();
|
||||||
~GetDpChEcomRequest();
|
~GetAlgorithmResultRequest();
|
||||||
|
|
||||||
std::string getServiceCode()const;
|
std::string getServiceCode()const;
|
||||||
void setServiceCode(const std::string& serviceCode);
|
void setServiceCode(const std::string& serviceCode);
|
||||||
std::string getText()const;
|
std::string getApiCode()const;
|
||||||
void setText(const std::string& text);
|
void setApiCode(const std::string& apiCode);
|
||||||
|
std::string getParameters()const;
|
||||||
|
void setParameters(const std::string& parameters);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string serviceCode_;
|
std::string serviceCode_;
|
||||||
std::string text_;
|
std::string apiCode_;
|
||||||
|
std::string parameters_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMREQUEST_H_
|
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTREQUEST_H_
|
||||||
@@ -14,44 +14,44 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTCONFIGRESULT_H_
|
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTRESULT_H_
|
||||||
#define ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTCONFIGRESULT_H_
|
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/tdsr/TdsrExport.h>
|
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Tdsr
|
namespace Address_purification
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_TDSR_EXPORT GetHotspotConfigResult : public ServiceResult
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetAlgorithmResultResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
GetHotspotConfigResult();
|
GetAlgorithmResultResult();
|
||||||
explicit GetHotspotConfigResult(const std::string &payload);
|
explicit GetAlgorithmResultResult(const std::string &payload);
|
||||||
~GetHotspotConfigResult();
|
~GetAlgorithmResultResult();
|
||||||
std::string getObjectString()const;
|
|
||||||
std::string getData()const;
|
std::string getData()const;
|
||||||
std::string getErrMessage()const;
|
std::string getErrMessage()const;
|
||||||
|
std::string getCode()const;
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string objectString_;
|
|
||||||
std::string data_;
|
std::string data_;
|
||||||
std::string errMessage_;
|
std::string errMessage_;
|
||||||
|
std::string code_;
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTCONFIGRESULT_H_
|
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTRESULT_H_
|
||||||
@@ -14,35 +14,44 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_VCS_MODEL_GETINVENTORYREQUEST_H_
|
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTREQUEST_H_
|
||||||
#define ALIBABACLOUD_VCS_MODEL_GETINVENTORYREQUEST_H_
|
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/vcs/VcsExport.h>
|
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Vcs
|
namespace Address_purification
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_VCS_EXPORT GetInventoryRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetConsoleResultRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GetInventoryRequest();
|
GetConsoleResultRequest();
|
||||||
~GetInventoryRequest();
|
~GetConsoleResultRequest();
|
||||||
|
|
||||||
|
std::string getProductCode()const;
|
||||||
|
void setProductCode(const std::string& productCode);
|
||||||
|
std::string getApiCode()const;
|
||||||
|
void setApiCode(const std::string& apiCode);
|
||||||
std::string getCommodityCode()const;
|
std::string getCommodityCode()const;
|
||||||
void setCommodityCode(const std::string& commodityCode);
|
void setCommodityCode(const std::string& commodityCode);
|
||||||
|
std::string getParameters()const;
|
||||||
|
void setParameters(const std::string& parameters);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::string productCode_;
|
||||||
|
std::string apiCode_;
|
||||||
std::string commodityCode_;
|
std::string commodityCode_;
|
||||||
|
std::string parameters_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_VCS_MODEL_GETINVENTORYREQUEST_H_
|
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTREQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_STRUCTUREADDRESSRESULT_H_
|
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTRESULT_H_
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_STRUCTUREADDRESSRESULT_H_
|
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,23 +29,27 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT StructureAddressResult : public ServiceResult
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetConsoleResultResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
StructureAddressResult();
|
GetConsoleResultResult();
|
||||||
explicit StructureAddressResult(const std::string &payload);
|
explicit GetConsoleResultResult(const std::string &payload);
|
||||||
~StructureAddressResult();
|
~GetConsoleResultResult();
|
||||||
std::string getData()const;
|
std::string getData()const;
|
||||||
|
std::string getErrMessage()const;
|
||||||
|
std::string getErrCode()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string data_;
|
std::string data_;
|
||||||
|
std::string errMessage_;
|
||||||
|
std::string errCode_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_STRUCTUREADDRESSRESULT_H_
|
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTRESULT_H_
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Address_purification
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetReportRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
GetReportRequest();
|
||||||
|
~GetReportRequest();
|
||||||
|
|
||||||
|
std::string getProductCode()const;
|
||||||
|
void setProductCode(const std::string& productCode);
|
||||||
|
std::string getReportType()const;
|
||||||
|
void setReportType(const std::string& reportType);
|
||||||
|
std::string getApiCode()const;
|
||||||
|
void setApiCode(const std::string& apiCode);
|
||||||
|
std::string getGranularity()const;
|
||||||
|
void setGranularity(const std::string& granularity);
|
||||||
|
std::string getCommodityCode()const;
|
||||||
|
void setCommodityCode(const std::string& commodityCode);
|
||||||
|
std::string getParameters()const;
|
||||||
|
void setParameters(const std::string& parameters);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string productCode_;
|
||||||
|
std::string reportType_;
|
||||||
|
std::string apiCode_;
|
||||||
|
std::string granularity_;
|
||||||
|
std::string commodityCode_;
|
||||||
|
std::string parameters_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTREQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_COMPLETEADDRESSRESULT_H_
|
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTRESULT_H_
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_COMPLETEADDRESSRESULT_H_
|
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,23 +29,27 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT CompleteAddressResult : public ServiceResult
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetReportResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
CompleteAddressResult();
|
GetReportResult();
|
||||||
explicit CompleteAddressResult(const std::string &payload);
|
explicit GetReportResult(const std::string &payload);
|
||||||
~CompleteAddressResult();
|
~GetReportResult();
|
||||||
std::string getData()const;
|
std::string getData()const;
|
||||||
|
std::string getErrMessage()const;
|
||||||
|
std::string getErrCode()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string data_;
|
std::string data_;
|
||||||
|
std::string errMessage_;
|
||||||
|
std::string errCode_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_COMPLETEADDRESSRESULT_H_
|
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTRESULT_H_
|
||||||
@@ -14,44 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINEREQUEST_H_
|
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONREQUEST_H_
|
||||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINEREQUEST_H_
|
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Devops_rdc
|
namespace Address_purification
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ExecutePipelineRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetUserInfomationRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ExecutePipelineRequest();
|
GetUserInfomationRequest();
|
||||||
~ExecutePipelineRequest();
|
~GetUserInfomationRequest();
|
||||||
|
|
||||||
|
std::string getProductCode()const;
|
||||||
|
void setProductCode(const std::string& productCode);
|
||||||
std::string getParameters()const;
|
std::string getParameters()const;
|
||||||
void setParameters(const std::string& parameters);
|
void setParameters(const std::string& parameters);
|
||||||
std::string getUserPk()const;
|
|
||||||
void setUserPk(const std::string& userPk);
|
|
||||||
std::string getOrgId()const;
|
|
||||||
void setOrgId(const std::string& orgId);
|
|
||||||
long getPipelineId()const;
|
|
||||||
void setPipelineId(long pipelineId);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::string productCode_;
|
||||||
std::string parameters_;
|
std::string parameters_;
|
||||||
std::string userPk_;
|
|
||||||
std::string orgId_;
|
|
||||||
long pipelineId_;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINEREQUEST_H_
|
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONREQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CORRECTADDRESSRESULT_H_
|
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONRESULT_H_
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CORRECTADDRESSRESULT_H_
|
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,23 +29,27 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT CorrectAddressResult : public ServiceResult
|
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetUserInfomationResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
CorrectAddressResult();
|
GetUserInfomationResult();
|
||||||
explicit CorrectAddressResult(const std::string &payload);
|
explicit GetUserInfomationResult(const std::string &payload);
|
||||||
~CorrectAddressResult();
|
~GetUserInfomationResult();
|
||||||
std::string getData()const;
|
std::string getData()const;
|
||||||
|
std::string getErrMessage()const;
|
||||||
|
std::string getErrCode()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string data_;
|
std::string data_;
|
||||||
|
std::string errMessage_;
|
||||||
|
std::string errCode_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CORRECTADDRESSRESULT_H_
|
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONRESULT_H_
|
||||||
@@ -1,63 +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_ADDRESS_PURIFICATION_MODEL_GETZIPCODEREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETZIPCODEREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetZipcodeRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
GetZipcodeRequest();
|
|
||||||
~GetZipcodeRequest();
|
|
||||||
|
|
||||||
std::string getDefaultProvince()const;
|
|
||||||
void setDefaultProvince(const std::string& defaultProvince);
|
|
||||||
std::string getServiceCode()const;
|
|
||||||
void setServiceCode(const std::string& serviceCode);
|
|
||||||
std::string getDefaultCity()const;
|
|
||||||
void setDefaultCity(const std::string& defaultCity);
|
|
||||||
std::string getDefaultDistrict()const;
|
|
||||||
void setDefaultDistrict(const std::string& defaultDistrict);
|
|
||||||
std::string getAppKey()const;
|
|
||||||
void setAppKey(const std::string& appKey);
|
|
||||||
std::string getText()const;
|
|
||||||
void setText(const std::string& text);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string defaultProvince_;
|
|
||||||
std::string serviceCode_;
|
|
||||||
std::string defaultCity_;
|
|
||||||
std::string defaultDistrict_;
|
|
||||||
std::string appKey_;
|
|
||||||
std::string text_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETZIPCODEREQUEST_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_ADDRESS_PURIFICATION_MODEL_GETZIPCODERESULT_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETZIPCODERESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetZipcodeResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
GetZipcodeResult();
|
|
||||||
explicit GetZipcodeResult(const std::string &payload);
|
|
||||||
~GetZipcodeResult();
|
|
||||||
std::string getData()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string data_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETZIPCODERESULT_H_
|
|
||||||
@@ -1,63 +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_ADDRESS_PURIFICATION_MODEL_STRUCTUREADDRESSREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_STRUCTUREADDRESSREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT StructureAddressRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
StructureAddressRequest();
|
|
||||||
~StructureAddressRequest();
|
|
||||||
|
|
||||||
std::string getDefaultProvince()const;
|
|
||||||
void setDefaultProvince(const std::string& defaultProvince);
|
|
||||||
std::string getServiceCode()const;
|
|
||||||
void setServiceCode(const std::string& serviceCode);
|
|
||||||
std::string getDefaultCity()const;
|
|
||||||
void setDefaultCity(const std::string& defaultCity);
|
|
||||||
std::string getDefaultDistrict()const;
|
|
||||||
void setDefaultDistrict(const std::string& defaultDistrict);
|
|
||||||
std::string getAppKey()const;
|
|
||||||
void setAppKey(const std::string& appKey);
|
|
||||||
std::string getText()const;
|
|
||||||
void setText(const std::string& text);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string defaultProvince_;
|
|
||||||
std::string serviceCode_;
|
|
||||||
std::string defaultCity_;
|
|
||||||
std::string defaultDistrict_;
|
|
||||||
std::string appKey_;
|
|
||||||
std::string text_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_STRUCTUREADDRESSREQUEST_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_ADDRESS_PURIFICATION_MODEL_UPDATEPROJECTRESULT_H_
|
|
||||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_UPDATEPROJECTRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Address_purification
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT UpdateProjectResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
UpdateProjectResult();
|
|
||||||
explicit UpdateProjectResult(const std::string &payload);
|
|
||||||
~UpdateProjectResult();
|
|
||||||
std::string getData()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string data_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_UPDATEPROJECTRESULT_H_
|
|
||||||
@@ -31,416 +31,200 @@ Address_purificationClient::Address_purificationClient(const Credentials &creden
|
|||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "addrp");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::Address_purificationClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
Address_purificationClient::Address_purificationClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "addrp");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::Address_purificationClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
Address_purificationClient::Address_purificationClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "addrp");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::~Address_purificationClient()
|
Address_purificationClient::~Address_purificationClient()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
Address_purificationClient::ClassifyPOIOutcome Address_purificationClient::classifyPOI(const ClassifyPOIRequest &request) const
|
Address_purificationClient::DescribeProductOutcome Address_purificationClient::describeProduct(const DescribeProductRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return ClassifyPOIOutcome(endpointOutcome.error());
|
return DescribeProductOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return ClassifyPOIOutcome(ClassifyPOIResult(outcome.result()));
|
return DescribeProductOutcome(DescribeProductResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return ClassifyPOIOutcome(outcome.error());
|
return DescribeProductOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Address_purificationClient::classifyPOIAsync(const ClassifyPOIRequest& request, const ClassifyPOIAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void Address_purificationClient::describeProductAsync(const DescribeProductRequest& request, const DescribeProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, classifyPOI(request), context);
|
handler(this, request, describeProduct(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::ClassifyPOIOutcomeCallable Address_purificationClient::classifyPOICallable(const ClassifyPOIRequest &request) const
|
Address_purificationClient::DescribeProductOutcomeCallable Address_purificationClient::describeProductCallable(const DescribeProductRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<ClassifyPOIOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<DescribeProductOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->classifyPOI(request);
|
return this->describeProduct(request);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::CompleteAddressOutcome Address_purificationClient::completeAddress(const CompleteAddressRequest &request) const
|
Address_purificationClient::GetAlgorithmResultOutcome Address_purificationClient::getAlgorithmResult(const GetAlgorithmResultRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return CompleteAddressOutcome(endpointOutcome.error());
|
return GetAlgorithmResultOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return CompleteAddressOutcome(CompleteAddressResult(outcome.result()));
|
return GetAlgorithmResultOutcome(GetAlgorithmResultResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return CompleteAddressOutcome(outcome.error());
|
return GetAlgorithmResultOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Address_purificationClient::completeAddressAsync(const CompleteAddressRequest& request, const CompleteAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void Address_purificationClient::getAlgorithmResultAsync(const GetAlgorithmResultRequest& request, const GetAlgorithmResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, completeAddress(request), context);
|
handler(this, request, getAlgorithmResult(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::CompleteAddressOutcomeCallable Address_purificationClient::completeAddressCallable(const CompleteAddressRequest &request) const
|
Address_purificationClient::GetAlgorithmResultOutcomeCallable Address_purificationClient::getAlgorithmResultCallable(const GetAlgorithmResultRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<CompleteAddressOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<GetAlgorithmResultOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->completeAddress(request);
|
return this->getAlgorithmResult(request);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::CorrectAddressOutcome Address_purificationClient::correctAddress(const CorrectAddressRequest &request) const
|
Address_purificationClient::GetConsoleResultOutcome Address_purificationClient::getConsoleResult(const GetConsoleResultRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return CorrectAddressOutcome(endpointOutcome.error());
|
return GetConsoleResultOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return CorrectAddressOutcome(CorrectAddressResult(outcome.result()));
|
return GetConsoleResultOutcome(GetConsoleResultResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return CorrectAddressOutcome(outcome.error());
|
return GetConsoleResultOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Address_purificationClient::correctAddressAsync(const CorrectAddressRequest& request, const CorrectAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void Address_purificationClient::getConsoleResultAsync(const GetConsoleResultRequest& request, const GetConsoleResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, correctAddress(request), context);
|
handler(this, request, getConsoleResult(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::CorrectAddressOutcomeCallable Address_purificationClient::correctAddressCallable(const CorrectAddressRequest &request) const
|
Address_purificationClient::GetConsoleResultOutcomeCallable Address_purificationClient::getConsoleResultCallable(const GetConsoleResultRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<CorrectAddressOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<GetConsoleResultOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->correctAddress(request);
|
return this->getConsoleResult(request);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::ExtractAddressOutcome Address_purificationClient::extractAddress(const ExtractAddressRequest &request) const
|
Address_purificationClient::GetReportOutcome Address_purificationClient::getReport(const GetReportRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return ExtractAddressOutcome(endpointOutcome.error());
|
return GetReportOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return ExtractAddressOutcome(ExtractAddressResult(outcome.result()));
|
return GetReportOutcome(GetReportResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return ExtractAddressOutcome(outcome.error());
|
return GetReportOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Address_purificationClient::extractAddressAsync(const ExtractAddressRequest& request, const ExtractAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void Address_purificationClient::getReportAsync(const GetReportRequest& request, const GetReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, extractAddress(request), context);
|
handler(this, request, getReport(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::ExtractAddressOutcomeCallable Address_purificationClient::extractAddressCallable(const ExtractAddressRequest &request) const
|
Address_purificationClient::GetReportOutcomeCallable Address_purificationClient::getReportCallable(const GetReportRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<ExtractAddressOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<GetReportOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->extractAddress(request);
|
return this->getReport(request);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::ExtractNameOutcome Address_purificationClient::extractName(const ExtractNameRequest &request) const
|
Address_purificationClient::GetUserInfomationOutcome Address_purificationClient::getUserInfomation(const GetUserInfomationRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return ExtractNameOutcome(endpointOutcome.error());
|
return GetUserInfomationOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return ExtractNameOutcome(ExtractNameResult(outcome.result()));
|
return GetUserInfomationOutcome(GetUserInfomationResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return ExtractNameOutcome(outcome.error());
|
return GetUserInfomationOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Address_purificationClient::extractNameAsync(const ExtractNameRequest& request, const ExtractNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void Address_purificationClient::getUserInfomationAsync(const GetUserInfomationRequest& request, const GetUserInfomationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, extractName(request), context);
|
handler(this, request, getUserInfomation(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
Address_purificationClient::ExtractNameOutcomeCallable Address_purificationClient::extractNameCallable(const ExtractNameRequest &request) const
|
Address_purificationClient::GetUserInfomationOutcomeCallable Address_purificationClient::getUserInfomationCallable(const GetUserInfomationRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<ExtractNameOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<GetUserInfomationOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->extractName(request);
|
return this->getUserInfomation(request);
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::ExtractPhoneOutcome Address_purificationClient::extractPhone(const ExtractPhoneRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return ExtractPhoneOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return ExtractPhoneOutcome(ExtractPhoneResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return ExtractPhoneOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void Address_purificationClient::extractPhoneAsync(const ExtractPhoneRequest& request, const ExtractPhoneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, extractPhone(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::ExtractPhoneOutcomeCallable Address_purificationClient::extractPhoneCallable(const ExtractPhoneRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<ExtractPhoneOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->extractPhone(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::GetAddressDivisionCodeOutcome Address_purificationClient::getAddressDivisionCode(const GetAddressDivisionCodeRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return GetAddressDivisionCodeOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return GetAddressDivisionCodeOutcome(GetAddressDivisionCodeResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return GetAddressDivisionCodeOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void Address_purificationClient::getAddressDivisionCodeAsync(const GetAddressDivisionCodeRequest& request, const GetAddressDivisionCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, getAddressDivisionCode(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::GetAddressDivisionCodeOutcomeCallable Address_purificationClient::getAddressDivisionCodeCallable(const GetAddressDivisionCodeRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<GetAddressDivisionCodeOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->getAddressDivisionCode(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::GetAddressSimilarityOutcome Address_purificationClient::getAddressSimilarity(const GetAddressSimilarityRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return GetAddressSimilarityOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return GetAddressSimilarityOutcome(GetAddressSimilarityResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return GetAddressSimilarityOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void Address_purificationClient::getAddressSimilarityAsync(const GetAddressSimilarityRequest& request, const GetAddressSimilarityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, getAddressSimilarity(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::GetAddressSimilarityOutcomeCallable Address_purificationClient::getAddressSimilarityCallable(const GetAddressSimilarityRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<GetAddressSimilarityOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->getAddressSimilarity(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::GetZipcodeOutcome Address_purificationClient::getZipcode(const GetZipcodeRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return GetZipcodeOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return GetZipcodeOutcome(GetZipcodeResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return GetZipcodeOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void Address_purificationClient::getZipcodeAsync(const GetZipcodeRequest& request, const GetZipcodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, getZipcode(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::GetZipcodeOutcomeCallable Address_purificationClient::getZipcodeCallable(const GetZipcodeRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<GetZipcodeOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->getZipcode(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::StructureAddressOutcome Address_purificationClient::structureAddress(const StructureAddressRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return StructureAddressOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return StructureAddressOutcome(StructureAddressResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return StructureAddressOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void Address_purificationClient::structureAddressAsync(const StructureAddressRequest& request, const StructureAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, structureAddress(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::StructureAddressOutcomeCallable Address_purificationClient::structureAddressCallable(const StructureAddressRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<StructureAddressOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->structureAddress(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::UpdateProjectOutcome Address_purificationClient::updateProject(const UpdateProjectRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return UpdateProjectOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return UpdateProjectOutcome(UpdateProjectResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return UpdateProjectOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void Address_purificationClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, updateProject(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
Address_purificationClient::UpdateProjectOutcomeCallable Address_purificationClient::updateProjectCallable(const UpdateProjectRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<UpdateProjectOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->updateProject(request);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
|||||||
@@ -1,95 +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/address-purification/model/ClassifyPOIRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Address_purification::Model::ClassifyPOIRequest;
|
|
||||||
|
|
||||||
ClassifyPOIRequest::ClassifyPOIRequest() :
|
|
||||||
RpcServiceRequest("address-purification", "2019-11-18", "ClassifyPOI")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ClassifyPOIRequest::~ClassifyPOIRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ClassifyPOIRequest::getDefaultProvince()const
|
|
||||||
{
|
|
||||||
return defaultProvince_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ClassifyPOIRequest::setDefaultProvince(const std::string& defaultProvince)
|
|
||||||
{
|
|
||||||
defaultProvince_ = defaultProvince;
|
|
||||||
setBodyParameter("DefaultProvince", defaultProvince);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ClassifyPOIRequest::getServiceCode()const
|
|
||||||
{
|
|
||||||
return serviceCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ClassifyPOIRequest::setServiceCode(const std::string& serviceCode)
|
|
||||||
{
|
|
||||||
serviceCode_ = serviceCode;
|
|
||||||
setBodyParameter("ServiceCode", serviceCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ClassifyPOIRequest::getDefaultCity()const
|
|
||||||
{
|
|
||||||
return defaultCity_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ClassifyPOIRequest::setDefaultCity(const std::string& defaultCity)
|
|
||||||
{
|
|
||||||
defaultCity_ = defaultCity;
|
|
||||||
setBodyParameter("DefaultCity", defaultCity);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ClassifyPOIRequest::getDefaultDistrict()const
|
|
||||||
{
|
|
||||||
return defaultDistrict_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ClassifyPOIRequest::setDefaultDistrict(const std::string& defaultDistrict)
|
|
||||||
{
|
|
||||||
defaultDistrict_ = defaultDistrict;
|
|
||||||
setBodyParameter("DefaultDistrict", defaultDistrict);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ClassifyPOIRequest::getAppKey()const
|
|
||||||
{
|
|
||||||
return appKey_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ClassifyPOIRequest::setAppKey(const std::string& appKey)
|
|
||||||
{
|
|
||||||
appKey_ = appKey;
|
|
||||||
setBodyParameter("AppKey", appKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ClassifyPOIRequest::getText()const
|
|
||||||
{
|
|
||||||
return text_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ClassifyPOIRequest::setText(const std::string& text)
|
|
||||||
{
|
|
||||||
text_ = text;
|
|
||||||
setBodyParameter("Text", text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/address-purification/model/ClassifyPOIResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Address_purification;
|
|
||||||
using namespace AlibabaCloud::Address_purification::Model;
|
|
||||||
|
|
||||||
ClassifyPOIResult::ClassifyPOIResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
ClassifyPOIResult::ClassifyPOIResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
ClassifyPOIResult::~ClassifyPOIResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void ClassifyPOIResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Data"].isNull())
|
|
||||||
data_ = value["Data"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ClassifyPOIResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,95 +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/address-purification/model/CompleteAddressRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Address_purification::Model::CompleteAddressRequest;
|
|
||||||
|
|
||||||
CompleteAddressRequest::CompleteAddressRequest() :
|
|
||||||
RpcServiceRequest("address-purification", "2019-11-18", "CompleteAddress")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
CompleteAddressRequest::~CompleteAddressRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string CompleteAddressRequest::getDefaultProvince()const
|
|
||||||
{
|
|
||||||
return defaultProvince_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CompleteAddressRequest::setDefaultProvince(const std::string& defaultProvince)
|
|
||||||
{
|
|
||||||
defaultProvince_ = defaultProvince;
|
|
||||||
setBodyParameter("DefaultProvince", defaultProvince);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CompleteAddressRequest::getServiceCode()const
|
|
||||||
{
|
|
||||||
return serviceCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CompleteAddressRequest::setServiceCode(const std::string& serviceCode)
|
|
||||||
{
|
|
||||||
serviceCode_ = serviceCode;
|
|
||||||
setBodyParameter("ServiceCode", serviceCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CompleteAddressRequest::getDefaultCity()const
|
|
||||||
{
|
|
||||||
return defaultCity_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CompleteAddressRequest::setDefaultCity(const std::string& defaultCity)
|
|
||||||
{
|
|
||||||
defaultCity_ = defaultCity;
|
|
||||||
setBodyParameter("DefaultCity", defaultCity);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CompleteAddressRequest::getDefaultDistrict()const
|
|
||||||
{
|
|
||||||
return defaultDistrict_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CompleteAddressRequest::setDefaultDistrict(const std::string& defaultDistrict)
|
|
||||||
{
|
|
||||||
defaultDistrict_ = defaultDistrict;
|
|
||||||
setBodyParameter("DefaultDistrict", defaultDistrict);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CompleteAddressRequest::getAppKey()const
|
|
||||||
{
|
|
||||||
return appKey_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CompleteAddressRequest::setAppKey(const std::string& appKey)
|
|
||||||
{
|
|
||||||
appKey_ = appKey;
|
|
||||||
setBodyParameter("AppKey", appKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CompleteAddressRequest::getText()const
|
|
||||||
{
|
|
||||||
return text_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CompleteAddressRequest::setText(const std::string& text)
|
|
||||||
{
|
|
||||||
text_ = text;
|
|
||||||
setBodyParameter("Text", text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/address-purification/model/CompleteAddressResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Address_purification;
|
|
||||||
using namespace AlibabaCloud::Address_purification::Model;
|
|
||||||
|
|
||||||
CompleteAddressResult::CompleteAddressResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
CompleteAddressResult::CompleteAddressResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
CompleteAddressResult::~CompleteAddressResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void CompleteAddressResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Data"].isNull())
|
|
||||||
data_ = value["Data"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CompleteAddressResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,95 +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/address-purification/model/CorrectAddressRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Address_purification::Model::CorrectAddressRequest;
|
|
||||||
|
|
||||||
CorrectAddressRequest::CorrectAddressRequest() :
|
|
||||||
RpcServiceRequest("address-purification", "2019-11-18", "CorrectAddress")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
CorrectAddressRequest::~CorrectAddressRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string CorrectAddressRequest::getDefaultProvince()const
|
|
||||||
{
|
|
||||||
return defaultProvince_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CorrectAddressRequest::setDefaultProvince(const std::string& defaultProvince)
|
|
||||||
{
|
|
||||||
defaultProvince_ = defaultProvince;
|
|
||||||
setBodyParameter("DefaultProvince", defaultProvince);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CorrectAddressRequest::getServiceCode()const
|
|
||||||
{
|
|
||||||
return serviceCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CorrectAddressRequest::setServiceCode(const std::string& serviceCode)
|
|
||||||
{
|
|
||||||
serviceCode_ = serviceCode;
|
|
||||||
setBodyParameter("ServiceCode", serviceCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CorrectAddressRequest::getDefaultCity()const
|
|
||||||
{
|
|
||||||
return defaultCity_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CorrectAddressRequest::setDefaultCity(const std::string& defaultCity)
|
|
||||||
{
|
|
||||||
defaultCity_ = defaultCity;
|
|
||||||
setBodyParameter("DefaultCity", defaultCity);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CorrectAddressRequest::getDefaultDistrict()const
|
|
||||||
{
|
|
||||||
return defaultDistrict_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CorrectAddressRequest::setDefaultDistrict(const std::string& defaultDistrict)
|
|
||||||
{
|
|
||||||
defaultDistrict_ = defaultDistrict;
|
|
||||||
setBodyParameter("DefaultDistrict", defaultDistrict);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CorrectAddressRequest::getAppKey()const
|
|
||||||
{
|
|
||||||
return appKey_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CorrectAddressRequest::setAppKey(const std::string& appKey)
|
|
||||||
{
|
|
||||||
appKey_ = appKey;
|
|
||||||
setBodyParameter("AppKey", appKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CorrectAddressRequest::getText()const
|
|
||||||
{
|
|
||||||
return text_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CorrectAddressRequest::setText(const std::string& text)
|
|
||||||
{
|
|
||||||
text_ = text;
|
|
||||||
setBodyParameter("Text", text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/address-purification/model/CorrectAddressResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Address_purification;
|
|
||||||
using namespace AlibabaCloud::Address_purification::Model;
|
|
||||||
|
|
||||||
CorrectAddressResult::CorrectAddressResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
CorrectAddressResult::CorrectAddressResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
CorrectAddressResult::~CorrectAddressResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void CorrectAddressResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Data"].isNull())
|
|
||||||
data_ = value["Data"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CorrectAddressResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -14,36 +14,36 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/address-purification/model/UpdateProjectRequest.h>
|
#include <alibabacloud/address-purification/model/DescribeProductRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Address_purification::Model::UpdateProjectRequest;
|
using AlibabaCloud::Address_purification::Model::DescribeProductRequest;
|
||||||
|
|
||||||
UpdateProjectRequest::UpdateProjectRequest() :
|
DescribeProductRequest::DescribeProductRequest() :
|
||||||
RpcServiceRequest("address-purification", "2019-11-18", "UpdateProject")
|
RpcServiceRequest("address-purification", "2019-11-18", "DescribeProduct")
|
||||||
{
|
{
|
||||||
setMethod(HttpRequest::Method::Post);
|
setMethod(HttpRequest::Method::Post);
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateProjectRequest::~UpdateProjectRequest()
|
DescribeProductRequest::~DescribeProductRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string UpdateProjectRequest::getServiceCode()const
|
std::string DescribeProductRequest::getServiceCode()const
|
||||||
{
|
{
|
||||||
return serviceCode_;
|
return serviceCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateProjectRequest::setServiceCode(const std::string& serviceCode)
|
void DescribeProductRequest::setServiceCode(const std::string& serviceCode)
|
||||||
{
|
{
|
||||||
serviceCode_ = serviceCode;
|
serviceCode_ = serviceCode;
|
||||||
setBodyParameter("ServiceCode", serviceCode);
|
setBodyParameter("ServiceCode", serviceCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string UpdateProjectRequest::getParameters()const
|
std::string DescribeProductRequest::getParameters()const
|
||||||
{
|
{
|
||||||
return parameters_;
|
return parameters_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateProjectRequest::setParameters(const std::string& parameters)
|
void DescribeProductRequest::setParameters(const std::string& parameters)
|
||||||
{
|
{
|
||||||
parameters_ = parameters;
|
parameters_ = parameters;
|
||||||
setBodyParameter("Parameters", parameters);
|
setBodyParameter("Parameters", parameters);
|
||||||
@@ -14,58 +14,58 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/tdsr/model/GetWindowConfigResult.h>
|
#include <alibabacloud/address-purification/model/DescribeProductResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Tdsr;
|
using namespace AlibabaCloud::Address_purification;
|
||||||
using namespace AlibabaCloud::Tdsr::Model;
|
using namespace AlibabaCloud::Address_purification::Model;
|
||||||
|
|
||||||
GetWindowConfigResult::GetWindowConfigResult() :
|
DescribeProductResult::DescribeProductResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
GetWindowConfigResult::GetWindowConfigResult(const std::string &payload) :
|
DescribeProductResult::DescribeProductResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetWindowConfigResult::~GetWindowConfigResult()
|
DescribeProductResult::~DescribeProductResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void GetWindowConfigResult::parse(const std::string &payload)
|
void DescribeProductResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["Success"].isNull())
|
if(!value["Success"].isNull())
|
||||||
success_ = value["Success"].asString() == "true";
|
success_ = value["Success"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
if(!value["ErrMessage"].isNull())
|
if(!value["ErrMessage"].isNull())
|
||||||
errMessage_ = value["ErrMessage"].asString();
|
errMessage_ = value["ErrMessage"].asString();
|
||||||
if(!value["Data"].isNull())
|
if(!value["Data"].isNull())
|
||||||
data_ = value["Data"].asString();
|
data_ = value["Data"].asString();
|
||||||
if(!value["ObjectString"].isNull())
|
|
||||||
objectString_ = value["ObjectString"].asString();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetWindowConfigResult::getObjectString()const
|
std::string DescribeProductResult::getData()const
|
||||||
{
|
|
||||||
return objectString_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetWindowConfigResult::getData()const
|
|
||||||
{
|
{
|
||||||
return data_;
|
return data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetWindowConfigResult::getErrMessage()const
|
std::string DescribeProductResult::getErrMessage()const
|
||||||
{
|
{
|
||||||
return errMessage_;
|
return errMessage_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GetWindowConfigResult::getSuccess()const
|
std::string DescribeProductResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeProductResult::getSuccess()const
|
||||||
{
|
{
|
||||||
return success_;
|
return success_;
|
||||||
}
|
}
|
||||||
@@ -1,95 +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/address-purification/model/ExtractAddressRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Address_purification::Model::ExtractAddressRequest;
|
|
||||||
|
|
||||||
ExtractAddressRequest::ExtractAddressRequest() :
|
|
||||||
RpcServiceRequest("address-purification", "2019-11-18", "ExtractAddress")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ExtractAddressRequest::~ExtractAddressRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ExtractAddressRequest::getDefaultProvince()const
|
|
||||||
{
|
|
||||||
return defaultProvince_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractAddressRequest::setDefaultProvince(const std::string& defaultProvince)
|
|
||||||
{
|
|
||||||
defaultProvince_ = defaultProvince;
|
|
||||||
setBodyParameter("DefaultProvince", defaultProvince);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractAddressRequest::getServiceCode()const
|
|
||||||
{
|
|
||||||
return serviceCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractAddressRequest::setServiceCode(const std::string& serviceCode)
|
|
||||||
{
|
|
||||||
serviceCode_ = serviceCode;
|
|
||||||
setBodyParameter("ServiceCode", serviceCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractAddressRequest::getDefaultCity()const
|
|
||||||
{
|
|
||||||
return defaultCity_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractAddressRequest::setDefaultCity(const std::string& defaultCity)
|
|
||||||
{
|
|
||||||
defaultCity_ = defaultCity;
|
|
||||||
setBodyParameter("DefaultCity", defaultCity);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractAddressRequest::getDefaultDistrict()const
|
|
||||||
{
|
|
||||||
return defaultDistrict_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractAddressRequest::setDefaultDistrict(const std::string& defaultDistrict)
|
|
||||||
{
|
|
||||||
defaultDistrict_ = defaultDistrict;
|
|
||||||
setBodyParameter("DefaultDistrict", defaultDistrict);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractAddressRequest::getAppKey()const
|
|
||||||
{
|
|
||||||
return appKey_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractAddressRequest::setAppKey(const std::string& appKey)
|
|
||||||
{
|
|
||||||
appKey_ = appKey;
|
|
||||||
setBodyParameter("AppKey", appKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractAddressRequest::getText()const
|
|
||||||
{
|
|
||||||
return text_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractAddressRequest::setText(const std::string& text)
|
|
||||||
{
|
|
||||||
text_ = text;
|
|
||||||
setBodyParameter("Text", text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/address-purification/model/ExtractAddressResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Address_purification;
|
|
||||||
using namespace AlibabaCloud::Address_purification::Model;
|
|
||||||
|
|
||||||
ExtractAddressResult::ExtractAddressResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
ExtractAddressResult::ExtractAddressResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
ExtractAddressResult::~ExtractAddressResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void ExtractAddressResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Data"].isNull())
|
|
||||||
data_ = value["Data"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractAddressResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,95 +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/address-purification/model/ExtractNameRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Address_purification::Model::ExtractNameRequest;
|
|
||||||
|
|
||||||
ExtractNameRequest::ExtractNameRequest() :
|
|
||||||
RpcServiceRequest("address-purification", "2019-11-18", "ExtractName")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ExtractNameRequest::~ExtractNameRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ExtractNameRequest::getDefaultProvince()const
|
|
||||||
{
|
|
||||||
return defaultProvince_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractNameRequest::setDefaultProvince(const std::string& defaultProvince)
|
|
||||||
{
|
|
||||||
defaultProvince_ = defaultProvince;
|
|
||||||
setBodyParameter("DefaultProvince", defaultProvince);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractNameRequest::getServiceCode()const
|
|
||||||
{
|
|
||||||
return serviceCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractNameRequest::setServiceCode(const std::string& serviceCode)
|
|
||||||
{
|
|
||||||
serviceCode_ = serviceCode;
|
|
||||||
setBodyParameter("ServiceCode", serviceCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractNameRequest::getDefaultCity()const
|
|
||||||
{
|
|
||||||
return defaultCity_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractNameRequest::setDefaultCity(const std::string& defaultCity)
|
|
||||||
{
|
|
||||||
defaultCity_ = defaultCity;
|
|
||||||
setBodyParameter("DefaultCity", defaultCity);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractNameRequest::getDefaultDistrict()const
|
|
||||||
{
|
|
||||||
return defaultDistrict_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractNameRequest::setDefaultDistrict(const std::string& defaultDistrict)
|
|
||||||
{
|
|
||||||
defaultDistrict_ = defaultDistrict;
|
|
||||||
setBodyParameter("DefaultDistrict", defaultDistrict);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractNameRequest::getAppKey()const
|
|
||||||
{
|
|
||||||
return appKey_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractNameRequest::setAppKey(const std::string& appKey)
|
|
||||||
{
|
|
||||||
appKey_ = appKey;
|
|
||||||
setBodyParameter("AppKey", appKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractNameRequest::getText()const
|
|
||||||
{
|
|
||||||
return text_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractNameRequest::setText(const std::string& text)
|
|
||||||
{
|
|
||||||
text_ = text;
|
|
||||||
setBodyParameter("Text", text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/address-purification/model/ExtractNameResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Address_purification;
|
|
||||||
using namespace AlibabaCloud::Address_purification::Model;
|
|
||||||
|
|
||||||
ExtractNameResult::ExtractNameResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
ExtractNameResult::ExtractNameResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
ExtractNameResult::~ExtractNameResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void ExtractNameResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Data"].isNull())
|
|
||||||
data_ = value["Data"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractNameResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,95 +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/address-purification/model/ExtractPhoneRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Address_purification::Model::ExtractPhoneRequest;
|
|
||||||
|
|
||||||
ExtractPhoneRequest::ExtractPhoneRequest() :
|
|
||||||
RpcServiceRequest("address-purification", "2019-11-18", "ExtractPhone")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ExtractPhoneRequest::~ExtractPhoneRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ExtractPhoneRequest::getDefaultProvince()const
|
|
||||||
{
|
|
||||||
return defaultProvince_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractPhoneRequest::setDefaultProvince(const std::string& defaultProvince)
|
|
||||||
{
|
|
||||||
defaultProvince_ = defaultProvince;
|
|
||||||
setBodyParameter("DefaultProvince", defaultProvince);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractPhoneRequest::getServiceCode()const
|
|
||||||
{
|
|
||||||
return serviceCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractPhoneRequest::setServiceCode(const std::string& serviceCode)
|
|
||||||
{
|
|
||||||
serviceCode_ = serviceCode;
|
|
||||||
setBodyParameter("ServiceCode", serviceCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractPhoneRequest::getDefaultCity()const
|
|
||||||
{
|
|
||||||
return defaultCity_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractPhoneRequest::setDefaultCity(const std::string& defaultCity)
|
|
||||||
{
|
|
||||||
defaultCity_ = defaultCity;
|
|
||||||
setBodyParameter("DefaultCity", defaultCity);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractPhoneRequest::getDefaultDistrict()const
|
|
||||||
{
|
|
||||||
return defaultDistrict_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractPhoneRequest::setDefaultDistrict(const std::string& defaultDistrict)
|
|
||||||
{
|
|
||||||
defaultDistrict_ = defaultDistrict;
|
|
||||||
setBodyParameter("DefaultDistrict", defaultDistrict);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractPhoneRequest::getAppKey()const
|
|
||||||
{
|
|
||||||
return appKey_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractPhoneRequest::setAppKey(const std::string& appKey)
|
|
||||||
{
|
|
||||||
appKey_ = appKey;
|
|
||||||
setBodyParameter("AppKey", appKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractPhoneRequest::getText()const
|
|
||||||
{
|
|
||||||
return text_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ExtractPhoneRequest::setText(const std::string& text)
|
|
||||||
{
|
|
||||||
text_ = text;
|
|
||||||
setBodyParameter("Text", text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/address-purification/model/ExtractPhoneResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Address_purification;
|
|
||||||
using namespace AlibabaCloud::Address_purification::Model;
|
|
||||||
|
|
||||||
ExtractPhoneResult::ExtractPhoneResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
ExtractPhoneResult::ExtractPhoneResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
ExtractPhoneResult::~ExtractPhoneResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void ExtractPhoneResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Data"].isNull())
|
|
||||||
data_ = value["Data"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ExtractPhoneResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,95 +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/address-purification/model/GetAddressDivisionCodeRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Address_purification::Model::GetAddressDivisionCodeRequest;
|
|
||||||
|
|
||||||
GetAddressDivisionCodeRequest::GetAddressDivisionCodeRequest() :
|
|
||||||
RpcServiceRequest("address-purification", "2019-11-18", "GetAddressDivisionCode")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
GetAddressDivisionCodeRequest::~GetAddressDivisionCodeRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string GetAddressDivisionCodeRequest::getDefaultProvince()const
|
|
||||||
{
|
|
||||||
return defaultProvince_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressDivisionCodeRequest::setDefaultProvince(const std::string& defaultProvince)
|
|
||||||
{
|
|
||||||
defaultProvince_ = defaultProvince;
|
|
||||||
setBodyParameter("DefaultProvince", defaultProvince);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressDivisionCodeRequest::getServiceCode()const
|
|
||||||
{
|
|
||||||
return serviceCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressDivisionCodeRequest::setServiceCode(const std::string& serviceCode)
|
|
||||||
{
|
|
||||||
serviceCode_ = serviceCode;
|
|
||||||
setBodyParameter("ServiceCode", serviceCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressDivisionCodeRequest::getDefaultCity()const
|
|
||||||
{
|
|
||||||
return defaultCity_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressDivisionCodeRequest::setDefaultCity(const std::string& defaultCity)
|
|
||||||
{
|
|
||||||
defaultCity_ = defaultCity;
|
|
||||||
setBodyParameter("DefaultCity", defaultCity);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressDivisionCodeRequest::getDefaultDistrict()const
|
|
||||||
{
|
|
||||||
return defaultDistrict_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressDivisionCodeRequest::setDefaultDistrict(const std::string& defaultDistrict)
|
|
||||||
{
|
|
||||||
defaultDistrict_ = defaultDistrict;
|
|
||||||
setBodyParameter("DefaultDistrict", defaultDistrict);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressDivisionCodeRequest::getAppKey()const
|
|
||||||
{
|
|
||||||
return appKey_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressDivisionCodeRequest::setAppKey(const std::string& appKey)
|
|
||||||
{
|
|
||||||
appKey_ = appKey;
|
|
||||||
setBodyParameter("AppKey", appKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressDivisionCodeRequest::getText()const
|
|
||||||
{
|
|
||||||
return text_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressDivisionCodeRequest::setText(const std::string& text)
|
|
||||||
{
|
|
||||||
text_ = text;
|
|
||||||
setBodyParameter("Text", text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/address-purification/model/GetAddressDivisionCodeResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Address_purification;
|
|
||||||
using namespace AlibabaCloud::Address_purification::Model;
|
|
||||||
|
|
||||||
GetAddressDivisionCodeResult::GetAddressDivisionCodeResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
GetAddressDivisionCodeResult::GetAddressDivisionCodeResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
GetAddressDivisionCodeResult::~GetAddressDivisionCodeResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void GetAddressDivisionCodeResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Data"].isNull())
|
|
||||||
data_ = value["Data"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressDivisionCodeResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,95 +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/address-purification/model/GetAddressSimilarityRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Address_purification::Model::GetAddressSimilarityRequest;
|
|
||||||
|
|
||||||
GetAddressSimilarityRequest::GetAddressSimilarityRequest() :
|
|
||||||
RpcServiceRequest("address-purification", "2019-11-18", "GetAddressSimilarity")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
GetAddressSimilarityRequest::~GetAddressSimilarityRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string GetAddressSimilarityRequest::getDefaultProvince()const
|
|
||||||
{
|
|
||||||
return defaultProvince_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressSimilarityRequest::setDefaultProvince(const std::string& defaultProvince)
|
|
||||||
{
|
|
||||||
defaultProvince_ = defaultProvince;
|
|
||||||
setBodyParameter("DefaultProvince", defaultProvince);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressSimilarityRequest::getServiceCode()const
|
|
||||||
{
|
|
||||||
return serviceCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressSimilarityRequest::setServiceCode(const std::string& serviceCode)
|
|
||||||
{
|
|
||||||
serviceCode_ = serviceCode;
|
|
||||||
setBodyParameter("ServiceCode", serviceCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressSimilarityRequest::getDefaultCity()const
|
|
||||||
{
|
|
||||||
return defaultCity_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressSimilarityRequest::setDefaultCity(const std::string& defaultCity)
|
|
||||||
{
|
|
||||||
defaultCity_ = defaultCity;
|
|
||||||
setBodyParameter("DefaultCity", defaultCity);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressSimilarityRequest::getDefaultDistrict()const
|
|
||||||
{
|
|
||||||
return defaultDistrict_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressSimilarityRequest::setDefaultDistrict(const std::string& defaultDistrict)
|
|
||||||
{
|
|
||||||
defaultDistrict_ = defaultDistrict;
|
|
||||||
setBodyParameter("DefaultDistrict", defaultDistrict);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressSimilarityRequest::getAppKey()const
|
|
||||||
{
|
|
||||||
return appKey_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressSimilarityRequest::setAppKey(const std::string& appKey)
|
|
||||||
{
|
|
||||||
appKey_ = appKey;
|
|
||||||
setBodyParameter("AppKey", appKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressSimilarityRequest::getText()const
|
|
||||||
{
|
|
||||||
return text_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAddressSimilarityRequest::setText(const std::string& text)
|
|
||||||
{
|
|
||||||
text_ = text;
|
|
||||||
setBodyParameter("Text", text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/address-purification/model/GetAddressSimilarityResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Address_purification;
|
|
||||||
using namespace AlibabaCloud::Address_purification::Model;
|
|
||||||
|
|
||||||
GetAddressSimilarityResult::GetAddressSimilarityResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
GetAddressSimilarityResult::GetAddressSimilarityResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
GetAddressSimilarityResult::~GetAddressSimilarityResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void GetAddressSimilarityResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Data"].isNull())
|
|
||||||
data_ = value["Data"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAddressSimilarityResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
62
address-purification/src/model/GetAlgorithmResultRequest.cc
Normal file
62
address-purification/src/model/GetAlgorithmResultRequest.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/address-purification/model/GetAlgorithmResultRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Address_purification::Model::GetAlgorithmResultRequest;
|
||||||
|
|
||||||
|
GetAlgorithmResultRequest::GetAlgorithmResultRequest() :
|
||||||
|
RpcServiceRequest("address-purification", "2019-11-18", "GetAlgorithmResult")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetAlgorithmResultRequest::~GetAlgorithmResultRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetAlgorithmResultRequest::getServiceCode()const
|
||||||
|
{
|
||||||
|
return serviceCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetAlgorithmResultRequest::setServiceCode(const std::string& serviceCode)
|
||||||
|
{
|
||||||
|
serviceCode_ = serviceCode;
|
||||||
|
setBodyParameter("ServiceCode", serviceCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetAlgorithmResultRequest::getApiCode()const
|
||||||
|
{
|
||||||
|
return apiCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetAlgorithmResultRequest::setApiCode(const std::string& apiCode)
|
||||||
|
{
|
||||||
|
apiCode_ = apiCode;
|
||||||
|
setBodyParameter("ApiCode", apiCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetAlgorithmResultRequest::getParameters()const
|
||||||
|
{
|
||||||
|
return parameters_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetAlgorithmResultRequest::setParameters(const std::string& parameters)
|
||||||
|
{
|
||||||
|
parameters_ = parameters;
|
||||||
|
setBodyParameter("Parameters", parameters);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,66 +14,59 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/metering/model/SyncDataResult.h>
|
#include <alibabacloud/address-purification/model/GetAlgorithmResultResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Metering;
|
using namespace AlibabaCloud::Address_purification;
|
||||||
using namespace AlibabaCloud::Metering::Model;
|
using namespace AlibabaCloud::Address_purification::Model;
|
||||||
|
|
||||||
SyncDataResult::SyncDataResult() :
|
GetAlgorithmResultResult::GetAlgorithmResultResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
SyncDataResult::SyncDataResult(const std::string &payload) :
|
GetAlgorithmResultResult::GetAlgorithmResultResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
SyncDataResult::~SyncDataResult()
|
GetAlgorithmResultResult::~GetAlgorithmResultResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void SyncDataResult::parse(const std::string &payload)
|
void GetAlgorithmResultResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = std::stoi(value["Code"].asString());
|
|
||||||
if(!value["Success"].isNull())
|
if(!value["Success"].isNull())
|
||||||
success_ = value["Success"].asString() == "true";
|
success_ = value["Success"].asString() == "true";
|
||||||
if(!value["Data"].isNull())
|
if(!value["Code"].isNull())
|
||||||
data_ = value["Data"].asString() == "true";
|
code_ = value["Code"].asString();
|
||||||
if(!value["ErrCode"].isNull())
|
|
||||||
errCode_ = std::stoi(value["ErrCode"].asString());
|
|
||||||
if(!value["ErrMessage"].isNull())
|
if(!value["ErrMessage"].isNull())
|
||||||
errMessage_ = value["ErrMessage"].asString();
|
errMessage_ = value["ErrMessage"].asString();
|
||||||
|
if(!value["Data"].isNull())
|
||||||
|
data_ = value["Data"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SyncDataResult::getData()const
|
std::string GetAlgorithmResultResult::getData()const
|
||||||
{
|
{
|
||||||
return data_;
|
return data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string SyncDataResult::getErrMessage()const
|
std::string GetAlgorithmResultResult::getErrMessage()const
|
||||||
{
|
{
|
||||||
return errMessage_;
|
return errMessage_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SyncDataResult::getCode()const
|
std::string GetAlgorithmResultResult::getCode()const
|
||||||
{
|
{
|
||||||
return code_;
|
return code_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SyncDataResult::getSuccess()const
|
bool GetAlgorithmResultResult::getSuccess()const
|
||||||
{
|
{
|
||||||
return success_;
|
return success_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SyncDataResult::getErrCode()const
|
|
||||||
{
|
|
||||||
return errCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
73
address-purification/src/model/GetConsoleResultRequest.cc
Normal file
73
address-purification/src/model/GetConsoleResultRequest.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/address-purification/model/GetConsoleResultRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Address_purification::Model::GetConsoleResultRequest;
|
||||||
|
|
||||||
|
GetConsoleResultRequest::GetConsoleResultRequest() :
|
||||||
|
RpcServiceRequest("address-purification", "2019-11-18", "GetConsoleResult")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetConsoleResultRequest::~GetConsoleResultRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetConsoleResultRequest::getProductCode()const
|
||||||
|
{
|
||||||
|
return productCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetConsoleResultRequest::setProductCode(const std::string& productCode)
|
||||||
|
{
|
||||||
|
productCode_ = productCode;
|
||||||
|
setBodyParameter("ProductCode", productCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetConsoleResultRequest::getApiCode()const
|
||||||
|
{
|
||||||
|
return apiCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetConsoleResultRequest::setApiCode(const std::string& apiCode)
|
||||||
|
{
|
||||||
|
apiCode_ = apiCode;
|
||||||
|
setBodyParameter("ApiCode", apiCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetConsoleResultRequest::getCommodityCode()const
|
||||||
|
{
|
||||||
|
return commodityCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetConsoleResultRequest::setCommodityCode(const std::string& commodityCode)
|
||||||
|
{
|
||||||
|
commodityCode_ = commodityCode;
|
||||||
|
setBodyParameter("CommodityCode", commodityCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetConsoleResultRequest::getParameters()const
|
||||||
|
{
|
||||||
|
return parameters_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetConsoleResultRequest::setParameters(const std::string& parameters)
|
||||||
|
{
|
||||||
|
parameters_ = parameters;
|
||||||
|
setBodyParameter("Parameters", parameters);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,38 +14,52 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/address-purification/model/StructureAddressResult.h>
|
#include <alibabacloud/address-purification/model/GetConsoleResultResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Address_purification;
|
using namespace AlibabaCloud::Address_purification;
|
||||||
using namespace AlibabaCloud::Address_purification::Model;
|
using namespace AlibabaCloud::Address_purification::Model;
|
||||||
|
|
||||||
StructureAddressResult::StructureAddressResult() :
|
GetConsoleResultResult::GetConsoleResultResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
StructureAddressResult::StructureAddressResult(const std::string &payload) :
|
GetConsoleResultResult::GetConsoleResultResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
StructureAddressResult::~StructureAddressResult()
|
GetConsoleResultResult::~GetConsoleResultResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void StructureAddressResult::parse(const std::string &payload)
|
void GetConsoleResultResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["ErrCode"].isNull())
|
||||||
|
errCode_ = value["ErrCode"].asString();
|
||||||
|
if(!value["ErrMessage"].isNull())
|
||||||
|
errMessage_ = value["ErrMessage"].asString();
|
||||||
if(!value["Data"].isNull())
|
if(!value["Data"].isNull())
|
||||||
data_ = value["Data"].asString();
|
data_ = value["Data"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string StructureAddressResult::getData()const
|
std::string GetConsoleResultResult::getData()const
|
||||||
{
|
{
|
||||||
return data_;
|
return data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string GetConsoleResultResult::getErrMessage()const
|
||||||
|
{
|
||||||
|
return errMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetConsoleResultResult::getErrCode()const
|
||||||
|
{
|
||||||
|
return errCode_;
|
||||||
|
}
|
||||||
|
|
||||||
95
address-purification/src/model/GetReportRequest.cc
Normal file
95
address-purification/src/model/GetReportRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/address-purification/model/GetReportRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Address_purification::Model::GetReportRequest;
|
||||||
|
|
||||||
|
GetReportRequest::GetReportRequest() :
|
||||||
|
RpcServiceRequest("address-purification", "2019-11-18", "GetReport")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetReportRequest::~GetReportRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetReportRequest::getProductCode()const
|
||||||
|
{
|
||||||
|
return productCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetReportRequest::setProductCode(const std::string& productCode)
|
||||||
|
{
|
||||||
|
productCode_ = productCode;
|
||||||
|
setBodyParameter("ProductCode", productCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetReportRequest::getReportType()const
|
||||||
|
{
|
||||||
|
return reportType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetReportRequest::setReportType(const std::string& reportType)
|
||||||
|
{
|
||||||
|
reportType_ = reportType;
|
||||||
|
setBodyParameter("ReportType", reportType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetReportRequest::getApiCode()const
|
||||||
|
{
|
||||||
|
return apiCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetReportRequest::setApiCode(const std::string& apiCode)
|
||||||
|
{
|
||||||
|
apiCode_ = apiCode;
|
||||||
|
setBodyParameter("ApiCode", apiCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetReportRequest::getGranularity()const
|
||||||
|
{
|
||||||
|
return granularity_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetReportRequest::setGranularity(const std::string& granularity)
|
||||||
|
{
|
||||||
|
granularity_ = granularity;
|
||||||
|
setBodyParameter("Granularity", granularity);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetReportRequest::getCommodityCode()const
|
||||||
|
{
|
||||||
|
return commodityCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetReportRequest::setCommodityCode(const std::string& commodityCode)
|
||||||
|
{
|
||||||
|
commodityCode_ = commodityCode;
|
||||||
|
setBodyParameter("CommodityCode", commodityCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetReportRequest::getParameters()const
|
||||||
|
{
|
||||||
|
return parameters_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetReportRequest::setParameters(const std::string& parameters)
|
||||||
|
{
|
||||||
|
parameters_ = parameters;
|
||||||
|
setBodyParameter("Parameters", parameters);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,33 +14,33 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/tdsr/model/GetSceneListResult.h>
|
#include <alibabacloud/address-purification/model/GetReportResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Tdsr;
|
using namespace AlibabaCloud::Address_purification;
|
||||||
using namespace AlibabaCloud::Tdsr::Model;
|
using namespace AlibabaCloud::Address_purification::Model;
|
||||||
|
|
||||||
GetSceneListResult::GetSceneListResult() :
|
GetReportResult::GetReportResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
GetSceneListResult::GetSceneListResult(const std::string &payload) :
|
GetReportResult::GetReportResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetSceneListResult::~GetSceneListResult()
|
GetReportResult::~GetReportResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void GetSceneListResult::parse(const std::string &payload)
|
void GetReportResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["Success"].isNull())
|
if(!value["ErrCode"].isNull())
|
||||||
success_ = value["Success"].asString() == "true";
|
errCode_ = value["ErrCode"].asString();
|
||||||
if(!value["ErrMessage"].isNull())
|
if(!value["ErrMessage"].isNull())
|
||||||
errMessage_ = value["ErrMessage"].asString();
|
errMessage_ = value["ErrMessage"].asString();
|
||||||
if(!value["Data"].isNull())
|
if(!value["Data"].isNull())
|
||||||
@@ -48,18 +48,18 @@ void GetSceneListResult::parse(const std::string &payload)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetSceneListResult::getData()const
|
std::string GetReportResult::getData()const
|
||||||
{
|
{
|
||||||
return data_;
|
return data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetSceneListResult::getErrMessage()const
|
std::string GetReportResult::getErrMessage()const
|
||||||
{
|
{
|
||||||
return errMessage_;
|
return errMessage_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GetSceneListResult::getSuccess()const
|
std::string GetReportResult::getErrCode()const
|
||||||
{
|
{
|
||||||
return success_;
|
return errCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
51
address-purification/src/model/GetUserInfomationRequest.cc
Normal file
51
address-purification/src/model/GetUserInfomationRequest.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/address-purification/model/GetUserInfomationRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Address_purification::Model::GetUserInfomationRequest;
|
||||||
|
|
||||||
|
GetUserInfomationRequest::GetUserInfomationRequest() :
|
||||||
|
RpcServiceRequest("address-purification", "2019-11-18", "GetUserInfomation")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetUserInfomationRequest::~GetUserInfomationRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetUserInfomationRequest::getProductCode()const
|
||||||
|
{
|
||||||
|
return productCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetUserInfomationRequest::setProductCode(const std::string& productCode)
|
||||||
|
{
|
||||||
|
productCode_ = productCode;
|
||||||
|
setBodyParameter("ProductCode", productCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetUserInfomationRequest::getParameters()const
|
||||||
|
{
|
||||||
|
return parameters_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetUserInfomationRequest::setParameters(const std::string& parameters)
|
||||||
|
{
|
||||||
|
parameters_ = parameters;
|
||||||
|
setBodyParameter("Parameters", parameters);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,33 +14,33 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/tdsr/model/PublishHotspotResult.h>
|
#include <alibabacloud/address-purification/model/GetUserInfomationResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Tdsr;
|
using namespace AlibabaCloud::Address_purification;
|
||||||
using namespace AlibabaCloud::Tdsr::Model;
|
using namespace AlibabaCloud::Address_purification::Model;
|
||||||
|
|
||||||
PublishHotspotResult::PublishHotspotResult() :
|
GetUserInfomationResult::GetUserInfomationResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
PublishHotspotResult::PublishHotspotResult(const std::string &payload) :
|
GetUserInfomationResult::GetUserInfomationResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
PublishHotspotResult::~PublishHotspotResult()
|
GetUserInfomationResult::~GetUserInfomationResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void PublishHotspotResult::parse(const std::string &payload)
|
void GetUserInfomationResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["Success"].isNull())
|
if(!value["ErrCode"].isNull())
|
||||||
success_ = value["Success"].asString() == "true";
|
errCode_ = value["ErrCode"].asString();
|
||||||
if(!value["ErrMessage"].isNull())
|
if(!value["ErrMessage"].isNull())
|
||||||
errMessage_ = value["ErrMessage"].asString();
|
errMessage_ = value["ErrMessage"].asString();
|
||||||
if(!value["Data"].isNull())
|
if(!value["Data"].isNull())
|
||||||
@@ -48,18 +48,18 @@ void PublishHotspotResult::parse(const std::string &payload)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string PublishHotspotResult::getData()const
|
std::string GetUserInfomationResult::getData()const
|
||||||
{
|
{
|
||||||
return data_;
|
return data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string PublishHotspotResult::getErrMessage()const
|
std::string GetUserInfomationResult::getErrMessage()const
|
||||||
{
|
{
|
||||||
return errMessage_;
|
return errMessage_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PublishHotspotResult::getSuccess()const
|
std::string GetUserInfomationResult::getErrCode()const
|
||||||
{
|
{
|
||||||
return success_;
|
return errCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user