Compare commits
47 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97918475fb | ||
|
|
5a451d16d4 | ||
|
|
8bed6eecc7 | ||
|
|
db4bd7ae11 | ||
|
|
7e4fbe6210 | ||
|
|
de0798d2dd | ||
|
|
2650ca7420 | ||
|
|
59d9eaf390 | ||
|
|
1ae8883f81 | ||
|
|
30469764de | ||
|
|
aeea3c2fea | ||
|
|
743309716b | ||
|
|
c9ae7d0b7e | ||
|
|
def35a6602 | ||
|
|
da7aefe5aa | ||
|
|
243879b17f | ||
|
|
942248dfb0 | ||
|
|
8f92463d90 | ||
|
|
dbe8804b96 | ||
|
|
6e880496ba | ||
|
|
fbf5bf0457 | ||
|
|
e32ce45b9d | ||
|
|
053c0dc1a1 | ||
|
|
2070ee03ba | ||
|
|
e611ec2db4 | ||
|
|
57416bd581 | ||
|
|
2df6079b2d | ||
|
|
39221a5319 | ||
|
|
6bba61cebe | ||
|
|
a869068f77 | ||
|
|
cf9eca9516 | ||
|
|
9ae74a6524 | ||
|
|
1855010705 | ||
|
|
654af055e6 | ||
|
|
07b50e30ef | ||
|
|
767dcb5bee | ||
|
|
42b4be9e1f | ||
|
|
c811dc5d85 | ||
|
|
84659b3f3e | ||
|
|
e3faa7d285 | ||
|
|
99feb0fdea | ||
|
|
d58606d853 | ||
|
|
db4fde36ee | ||
|
|
b7d0012a43 | ||
|
|
9c23d3e24b | ||
|
|
11bf538b08 | ||
|
|
266bdb38c6 |
172
CHANGELOG
172
CHANGELOG
@@ -1,3 +1,175 @@
|
||||
2020-07-01 Version: 1.36.488
|
||||
- Support Saf For ExecuteExtendService.
|
||||
|
||||
2020-06-30 Version: 1.36.487
|
||||
- Add ListMetrics API.
|
||||
|
||||
2020-06-29 Version: 1.36.486
|
||||
- Supported Rotate.
|
||||
|
||||
2020-06-29 Version: 1.36.485
|
||||
- Supported Rotate.
|
||||
|
||||
2020-06-29 Version: 1.36.484
|
||||
- Add Model Parameter For InitFaceVerify API.
|
||||
|
||||
2020-06-26 Version: 1.36.483
|
||||
- Supported Api EraseLogoInVideo.
|
||||
|
||||
2020-06-24 Version: 1.36.482
|
||||
- Add DescribeBackupPlanBilling.
|
||||
- Modify ConfigureBackupPlan.
|
||||
- Modify CreateBackupPlan.
|
||||
- Modify CreateRestoreTask.
|
||||
- Modify DescribeRestoreTaskList.
|
||||
- Modify DescribeBackupPlanList.
|
||||
- Modify ModifyBackupSourceEndpoint.
|
||||
- Modify ModifyBackupStrategy.
|
||||
|
||||
2020-06-23 Version: 1.36.481
|
||||
- Add face quality detection API.
|
||||
|
||||
2020-06-23 Version: 1.36.480
|
||||
- Add face quality detection API.
|
||||
|
||||
2020-06-23 Version: 1.36.479
|
||||
- Add face quality detection API.
|
||||
|
||||
2020-06-23 Version: 1.36.478
|
||||
- Add face quality detection API.
|
||||
|
||||
2020-06-23 Version: 1.36.477
|
||||
- Generated 2015-12-15 for `CS`.
|
||||
|
||||
2020-06-23 Version: 1.36.476
|
||||
- Support SubmitOperationAuditInfo for Support self-service submission of approval information.
|
||||
- Support SubmitOperationCredentials for self-service submission of certificate information.
|
||||
- Support CancelOperationAudit for cancel audit.
|
||||
- Support GetOperationOssUploadPolic for get oss policy.
|
||||
- Support QueryOperationAuditInfoLis for query audit list.
|
||||
- Support QueryOperationAuditInfoDetail for query audit details.
|
||||
|
||||
2020-06-23 Version: 1.36.475
|
||||
- Generated 2018-08-28 for `Tag`.
|
||||
|
||||
2020-06-23 Version: 1.36.474
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-06-23 Version: 1.36.473
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-06-23 Version: 1.36.472
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-06-22 Version: 1.36.471
|
||||
- Add support cn-shenzhen region.
|
||||
|
||||
2020-06-22 Version: 1.36.470
|
||||
- Add GetMultipleTrace api.
|
||||
- Add SearchTracesByPage api.
|
||||
- Add GetStack api.
|
||||
|
||||
2020-06-21 Version: 1.36.469
|
||||
- Add persons API.
|
||||
|
||||
2020-06-18 Version: 1.36.468
|
||||
- Supported TransformDBInstancePayType API.
|
||||
|
||||
2020-06-18 Version: 1.36.467
|
||||
- Add GetAuthToken OpenAPI.
|
||||
|
||||
2020-06-18 Version: 1.36.466
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-06-17 Version: 1.36.465
|
||||
- Supported sync create eni and assign private ip.
|
||||
|
||||
2020-06-17 Version: 1.36.464
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-06-16 Version: 1.36.463
|
||||
- Support TargetImageId in ApplyNodes Interface.
|
||||
|
||||
2020-06-16 Version: 1.36.462
|
||||
- Update monitor related API.
|
||||
|
||||
2020-06-15 Version: 1.36.461
|
||||
- Generated 2019-09-10 for `waf-openapi`.
|
||||
|
||||
2020-06-15 Version: 1.36.460
|
||||
- Generated 2019-09-10 for `waf-openapi`.
|
||||
|
||||
2020-06-12 Version: 1.36.459
|
||||
- Add CreateProduct API ProductSecret in Response.
|
||||
- Add AMQP APIs, including CreateSubscribeRelation, CreateConsumerGroup, etc.
|
||||
- Add LinkIoTEdge CreateSceneRule API.
|
||||
- Add LinkIoTEdge DeleteSceneRule API.
|
||||
- Add LinkIoTEdge UpdateSceneRule API.
|
||||
- Add LinkIoTEdge GetSceneRule API.
|
||||
- Add LinkIoTEdge QuerySceneRule API.
|
||||
- Add LinkIoTEdge EnableSceneRule API.
|
||||
- Add LinkIoTEdge DisableSceneRule API.
|
||||
- Add LinkIoTEdge TriggerSceneRule API.
|
||||
- Add LinkIoTEdge QuerySummarySceneRuleLog API.
|
||||
- Add LinkIoTEdge QueryDetailSceneRuleLog API.
|
||||
- Add LinkIoTEdge BindSceneRuleToEdgeInstance API.
|
||||
- Add LinkIoTEdge UnbindSceneRuleFromEdgeInstance API.
|
||||
- Add LinkIoTEdge QueryEdgeInstanceSceneRule API.
|
||||
|
||||
2020-06-12 Version: 1.36.458
|
||||
- Update monitor related API.
|
||||
|
||||
2020-06-12 Version: 1.36.457
|
||||
- Add support for enable hbaseue extra module like lindorm-search or lindorm-sql.
|
||||
|
||||
2020-06-11 Version: 1.36.456
|
||||
- Support ServicePeriodUnit in QueryInstanceBill.
|
||||
|
||||
2020-06-10 Version: 1.36.455
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-06-10 Version: 1.36.454
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-06-08 Version: 1.36.453
|
||||
- Generate dbfs sdk.
|
||||
|
||||
2020-06-08 Version: 1.36.452
|
||||
- Support offline instance.
|
||||
|
||||
2020-06-04 Version: 1.36.451
|
||||
- Support for addrp.
|
||||
|
||||
2020-06-04 Version: 1.36.450
|
||||
- Supported Eni Trunking.
|
||||
|
||||
2020-06-04 Version: 1.36.449
|
||||
- Update monitor related API.
|
||||
|
||||
2020-06-04 Version: 1.36.448
|
||||
- Add SubmitMediaDNADeleteJob and ListMediaDNADeleteJob.
|
||||
- Modify GetMediaAuditResult interface, support ad logo and live result.
|
||||
- Modify GetMediaAuditResultTimeline interface, support ad logo and live result.
|
||||
|
||||
2020-06-04 Version: 1.36.447
|
||||
- Update monitor related API.
|
||||
|
||||
2020-06-04 Version: 1.36.446
|
||||
- Update monitor related API.
|
||||
|
||||
2020-06-03 Version: 1.36.445
|
||||
- Describe describeAvailableResource.
|
||||
|
||||
2020-06-03 Version: 1.36.444
|
||||
- Describe describeAvailableResource.
|
||||
|
||||
2020-06-03 Version: 1.36.443
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
|
||||
@@ -61,6 +61,8 @@ endif()
|
||||
|
||||
if(BUILD_PRODUCT STREQUAL "")
|
||||
message(WARNING "Please set the value of 'BUILD_PRODUCT'")
|
||||
elseif(BUILD_PRODUCT STREQUAL "core")
|
||||
add_subdirectory(core)
|
||||
else()
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(${BUILD_PRODUCT})
|
||||
|
||||
@@ -21,29 +21,53 @@ set(address-purification_public_header
|
||||
include/alibabacloud/address-purification/Address_purificationExport.h )
|
||||
|
||||
set(address-purification_public_header_model
|
||||
include/alibabacloud/address-purification/model/DescribeProductRequest.h
|
||||
include/alibabacloud/address-purification/model/DescribeProductResult.h
|
||||
include/alibabacloud/address-purification/model/GetAlgorithmResultRequest.h
|
||||
include/alibabacloud/address-purification/model/GetAlgorithmResultResult.h
|
||||
include/alibabacloud/address-purification/model/GetConsoleResultRequest.h
|
||||
include/alibabacloud/address-purification/model/GetConsoleResultResult.h
|
||||
include/alibabacloud/address-purification/model/GetReportRequest.h
|
||||
include/alibabacloud/address-purification/model/GetReportResult.h
|
||||
include/alibabacloud/address-purification/model/GetUserInfomationRequest.h
|
||||
include/alibabacloud/address-purification/model/GetUserInfomationResult.h )
|
||||
include/alibabacloud/address-purification/model/ClassifyPOIRequest.h
|
||||
include/alibabacloud/address-purification/model/ClassifyPOIResult.h
|
||||
include/alibabacloud/address-purification/model/CompleteAddressRequest.h
|
||||
include/alibabacloud/address-purification/model/CompleteAddressResult.h
|
||||
include/alibabacloud/address-purification/model/CorrectAddressRequest.h
|
||||
include/alibabacloud/address-purification/model/CorrectAddressResult.h
|
||||
include/alibabacloud/address-purification/model/ExtractAddressRequest.h
|
||||
include/alibabacloud/address-purification/model/ExtractAddressResult.h
|
||||
include/alibabacloud/address-purification/model/ExtractNameRequest.h
|
||||
include/alibabacloud/address-purification/model/ExtractNameResult.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
|
||||
src/Address-purificationClient.cc
|
||||
src/model/DescribeProductRequest.cc
|
||||
src/model/DescribeProductResult.cc
|
||||
src/model/GetAlgorithmResultRequest.cc
|
||||
src/model/GetAlgorithmResultResult.cc
|
||||
src/model/GetConsoleResultRequest.cc
|
||||
src/model/GetConsoleResultResult.cc
|
||||
src/model/GetReportRequest.cc
|
||||
src/model/GetReportResult.cc
|
||||
src/model/GetUserInfomationRequest.cc
|
||||
src/model/GetUserInfomationResult.cc )
|
||||
src/model/ClassifyPOIRequest.cc
|
||||
src/model/ClassifyPOIResult.cc
|
||||
src/model/CompleteAddressRequest.cc
|
||||
src/model/CompleteAddressResult.cc
|
||||
src/model/CorrectAddressRequest.cc
|
||||
src/model/CorrectAddressResult.cc
|
||||
src/model/ExtractAddressRequest.cc
|
||||
src/model/ExtractAddressResult.cc
|
||||
src/model/ExtractNameRequest.cc
|
||||
src/model/ExtractNameResult.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}
|
||||
${address-purification_public_header}
|
||||
|
||||
@@ -22,16 +22,28 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Address_purificationExport.h"
|
||||
#include "model/DescribeProductRequest.h"
|
||||
#include "model/DescribeProductResult.h"
|
||||
#include "model/GetAlgorithmResultRequest.h"
|
||||
#include "model/GetAlgorithmResultResult.h"
|
||||
#include "model/GetConsoleResultRequest.h"
|
||||
#include "model/GetConsoleResultResult.h"
|
||||
#include "model/GetReportRequest.h"
|
||||
#include "model/GetReportResult.h"
|
||||
#include "model/GetUserInfomationRequest.h"
|
||||
#include "model/GetUserInfomationResult.h"
|
||||
#include "model/ClassifyPOIRequest.h"
|
||||
#include "model/ClassifyPOIResult.h"
|
||||
#include "model/CompleteAddressRequest.h"
|
||||
#include "model/CompleteAddressResult.h"
|
||||
#include "model/CorrectAddressRequest.h"
|
||||
#include "model/CorrectAddressResult.h"
|
||||
#include "model/ExtractAddressRequest.h"
|
||||
#include "model/ExtractAddressResult.h"
|
||||
#include "model/ExtractNameRequest.h"
|
||||
#include "model/ExtractNameResult.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
|
||||
@@ -41,41 +53,77 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT Address_purificationClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeProductResult> DescribeProductOutcome;
|
||||
typedef std::future<DescribeProductOutcome> DescribeProductOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::DescribeProductRequest&, const DescribeProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProductAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAlgorithmResultResult> GetAlgorithmResultOutcome;
|
||||
typedef std::future<GetAlgorithmResultOutcome> GetAlgorithmResultOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::GetAlgorithmResultRequest&, const GetAlgorithmResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAlgorithmResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConsoleResultResult> GetConsoleResultOutcome;
|
||||
typedef std::future<GetConsoleResultOutcome> GetConsoleResultOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::GetConsoleResultRequest&, const GetConsoleResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsoleResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetReportResult> GetReportOutcome;
|
||||
typedef std::future<GetReportOutcome> GetReportOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::GetReportRequest&, const GetReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserInfomationResult> GetUserInfomationOutcome;
|
||||
typedef std::future<GetUserInfomationOutcome> GetUserInfomationOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::GetUserInfomationRequest&, const GetUserInfomationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserInfomationAsyncHandler;
|
||||
typedef Outcome<Error, Model::ClassifyPOIResult> ClassifyPOIOutcome;
|
||||
typedef std::future<ClassifyPOIOutcome> ClassifyPOIOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::ClassifyPOIRequest&, const ClassifyPOIOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ClassifyPOIAsyncHandler;
|
||||
typedef Outcome<Error, Model::CompleteAddressResult> CompleteAddressOutcome;
|
||||
typedef std::future<CompleteAddressOutcome> CompleteAddressOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::CompleteAddressRequest&, const CompleteAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompleteAddressAsyncHandler;
|
||||
typedef Outcome<Error, Model::CorrectAddressResult> CorrectAddressOutcome;
|
||||
typedef std::future<CorrectAddressOutcome> CorrectAddressOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::CorrectAddressRequest&, const CorrectAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CorrectAddressAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExtractAddressResult> ExtractAddressOutcome;
|
||||
typedef std::future<ExtractAddressOutcome> ExtractAddressOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::ExtractAddressRequest&, const ExtractAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExtractAddressAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExtractNameResult> ExtractNameOutcome;
|
||||
typedef std::future<ExtractNameOutcome> ExtractNameOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::ExtractNameRequest&, const ExtractNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExtractNameAsyncHandler;
|
||||
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 std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Address_purificationClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Address_purificationClient();
|
||||
DescribeProductOutcome describeProduct(const Model::DescribeProductRequest &request)const;
|
||||
void describeProductAsync(const Model::DescribeProductRequest& request, const DescribeProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeProductOutcomeCallable describeProductCallable(const Model::DescribeProductRequest& request) const;
|
||||
GetAlgorithmResultOutcome getAlgorithmResult(const Model::GetAlgorithmResultRequest &request)const;
|
||||
void getAlgorithmResultAsync(const Model::GetAlgorithmResultRequest& request, const GetAlgorithmResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAlgorithmResultOutcomeCallable getAlgorithmResultCallable(const Model::GetAlgorithmResultRequest& request) const;
|
||||
GetConsoleResultOutcome getConsoleResult(const Model::GetConsoleResultRequest &request)const;
|
||||
void getConsoleResultAsync(const Model::GetConsoleResultRequest& request, const GetConsoleResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConsoleResultOutcomeCallable getConsoleResultCallable(const Model::GetConsoleResultRequest& request) const;
|
||||
GetReportOutcome getReport(const Model::GetReportRequest &request)const;
|
||||
void getReportAsync(const Model::GetReportRequest& request, const GetReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetReportOutcomeCallable getReportCallable(const Model::GetReportRequest& request) const;
|
||||
GetUserInfomationOutcome getUserInfomation(const Model::GetUserInfomationRequest &request)const;
|
||||
void getUserInfomationAsync(const Model::GetUserInfomationRequest& request, const GetUserInfomationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserInfomationOutcomeCallable getUserInfomationCallable(const Model::GetUserInfomationRequest& request) const;
|
||||
ClassifyPOIOutcome classifyPOI(const Model::ClassifyPOIRequest &request)const;
|
||||
void classifyPOIAsync(const Model::ClassifyPOIRequest& request, const ClassifyPOIAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ClassifyPOIOutcomeCallable classifyPOICallable(const Model::ClassifyPOIRequest& request) const;
|
||||
CompleteAddressOutcome completeAddress(const Model::CompleteAddressRequest &request)const;
|
||||
void completeAddressAsync(const Model::CompleteAddressRequest& request, const CompleteAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompleteAddressOutcomeCallable completeAddressCallable(const Model::CompleteAddressRequest& request) const;
|
||||
CorrectAddressOutcome correctAddress(const Model::CorrectAddressRequest &request)const;
|
||||
void correctAddressAsync(const Model::CorrectAddressRequest& request, const CorrectAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CorrectAddressOutcomeCallable correctAddressCallable(const Model::CorrectAddressRequest& request) const;
|
||||
ExtractAddressOutcome extractAddress(const Model::ExtractAddressRequest &request)const;
|
||||
void extractAddressAsync(const Model::ExtractAddressRequest& request, const ExtractAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExtractAddressOutcomeCallable extractAddressCallable(const Model::ExtractAddressRequest& request) const;
|
||||
ExtractNameOutcome extractName(const Model::ExtractNameRequest &request)const;
|
||||
void extractNameAsync(const Model::ExtractNameRequest& request, const ExtractNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExtractNameOutcomeCallable extractNameCallable(const Model::ExtractNameRequest& 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:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -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_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_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CLASSIFYPOIRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CLASSIFYPOIRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,27 +29,23 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetReportResult : public ServiceResult
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ClassifyPOIResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetReportResult();
|
||||
explicit GetReportResult(const std::string &payload);
|
||||
~GetReportResult();
|
||||
ClassifyPOIResult();
|
||||
explicit ClassifyPOIResult(const std::string &payload);
|
||||
~ClassifyPOIResult();
|
||||
std::string getData()const;
|
||||
std::string getErrMessage()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
std::string errMessage_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CLASSIFYPOIRESULT_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_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_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_COMPLETEADDRESSRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_COMPLETEADDRESSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,27 +29,23 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetUserInfomationResult : public ServiceResult
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT CompleteAddressResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetUserInfomationResult();
|
||||
explicit GetUserInfomationResult(const std::string &payload);
|
||||
~GetUserInfomationResult();
|
||||
CompleteAddressResult();
|
||||
explicit CompleteAddressResult(const std::string &payload);
|
||||
~CompleteAddressResult();
|
||||
std::string getData()const;
|
||||
std::string getErrMessage()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
std::string errMessage_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_COMPLETEADDRESSRESULT_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_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_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CORRECTADDRESSRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CORRECTADDRESSRESULT_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 CorrectAddressResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CorrectAddressResult();
|
||||
explicit CorrectAddressResult(const std::string &payload);
|
||||
~CorrectAddressResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_CORRECTADDRESSRESULT_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_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_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTADDRESSRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTADDRESSRESULT_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 ExtractAddressResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ExtractAddressResult();
|
||||
explicit ExtractAddressResult(const std::string &payload);
|
||||
~ExtractAddressResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_EXTRACTADDRESSRESULT_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_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_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_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_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_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_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSDIVISIONCODERESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSDIVISIONCODERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,29 +29,23 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT DescribeProductResult : public ServiceResult
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetAddressDivisionCodeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeProductResult();
|
||||
explicit DescribeProductResult(const std::string &payload);
|
||||
~DescribeProductResult();
|
||||
GetAddressDivisionCodeResult();
|
||||
explicit GetAddressDivisionCodeResult(const std::string &payload);
|
||||
~GetAddressDivisionCodeResult();
|
||||
std::string getData()const;
|
||||
std::string getErrMessage()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
std::string errMessage_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETADDRESSDIVISIONCODERESULT_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_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_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTREQUEST_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 GetConsoleResultRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetConsoleResultRequest();
|
||||
~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;
|
||||
void setCommodityCode(const std::string& commodityCode);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string apiCode_;
|
||||
std::string commodityCode_;
|
||||
std::string parameters_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTREQUEST_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_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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETZIPCODEREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETZIPCODEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,27 +28,36 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetAlgorithmResultRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetZipcodeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAlgorithmResultRequest();
|
||||
~GetAlgorithmResultRequest();
|
||||
GetZipcodeRequest();
|
||||
~GetZipcodeRequest();
|
||||
|
||||
std::string getDefaultProvince()const;
|
||||
void setDefaultProvince(const std::string& defaultProvince);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getApiCode()const;
|
||||
void setApiCode(const std::string& apiCode);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
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 apiCode_;
|
||||
std::string parameters_;
|
||||
std::string defaultCity_;
|
||||
std::string defaultDistrict_;
|
||||
std::string appKey_;
|
||||
std::string text_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETZIPCODEREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_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_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_STRUCTUREADDRESSRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_STRUCTUREADDRESSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,27 +29,23 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetConsoleResultResult : public ServiceResult
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT StructureAddressResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetConsoleResultResult();
|
||||
explicit GetConsoleResultResult(const std::string &payload);
|
||||
~GetConsoleResultResult();
|
||||
StructureAddressResult();
|
||||
explicit StructureAddressResult(const std::string &payload);
|
||||
~StructureAddressResult();
|
||||
std::string getData()const;
|
||||
std::string getErrMessage()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
std::string errMessage_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_STRUCTUREADDRESSRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,12 +28,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT DescribeProductRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT UpdateProjectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeProductRequest();
|
||||
~DescribeProductRequest();
|
||||
UpdateProjectRequest();
|
||||
~UpdateProjectRequest();
|
||||
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
@@ -48,4 +48,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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,200 +31,416 @@ Address_purificationClient::Address_purificationClient(const Credentials &creden
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "addrp");
|
||||
}
|
||||
|
||||
Address_purificationClient::Address_purificationClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "addrp");
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "addrp");
|
||||
}
|
||||
|
||||
Address_purificationClient::~Address_purificationClient()
|
||||
{}
|
||||
|
||||
Address_purificationClient::DescribeProductOutcome Address_purificationClient::describeProduct(const DescribeProductRequest &request) const
|
||||
Address_purificationClient::ClassifyPOIOutcome Address_purificationClient::classifyPOI(const ClassifyPOIRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeProductOutcome(endpointOutcome.error());
|
||||
return ClassifyPOIOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeProductOutcome(DescribeProductResult(outcome.result()));
|
||||
return ClassifyPOIOutcome(ClassifyPOIResult(outcome.result()));
|
||||
else
|
||||
return DescribeProductOutcome(outcome.error());
|
||||
return ClassifyPOIOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Address_purificationClient::describeProductAsync(const DescribeProductRequest& request, const DescribeProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void Address_purificationClient::classifyPOIAsync(const ClassifyPOIRequest& request, const ClassifyPOIAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeProduct(request), context);
|
||||
handler(this, request, classifyPOI(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Address_purificationClient::DescribeProductOutcomeCallable Address_purificationClient::describeProductCallable(const DescribeProductRequest &request) const
|
||||
Address_purificationClient::ClassifyPOIOutcomeCallable Address_purificationClient::classifyPOICallable(const ClassifyPOIRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeProductOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<ClassifyPOIOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeProduct(request);
|
||||
return this->classifyPOI(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Address_purificationClient::GetAlgorithmResultOutcome Address_purificationClient::getAlgorithmResult(const GetAlgorithmResultRequest &request) const
|
||||
Address_purificationClient::CompleteAddressOutcome Address_purificationClient::completeAddress(const CompleteAddressRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAlgorithmResultOutcome(endpointOutcome.error());
|
||||
return CompleteAddressOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAlgorithmResultOutcome(GetAlgorithmResultResult(outcome.result()));
|
||||
return CompleteAddressOutcome(CompleteAddressResult(outcome.result()));
|
||||
else
|
||||
return GetAlgorithmResultOutcome(outcome.error());
|
||||
return CompleteAddressOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Address_purificationClient::getAlgorithmResultAsync(const GetAlgorithmResultRequest& request, const GetAlgorithmResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void Address_purificationClient::completeAddressAsync(const CompleteAddressRequest& request, const CompleteAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAlgorithmResult(request), context);
|
||||
handler(this, request, completeAddress(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Address_purificationClient::GetAlgorithmResultOutcomeCallable Address_purificationClient::getAlgorithmResultCallable(const GetAlgorithmResultRequest &request) const
|
||||
Address_purificationClient::CompleteAddressOutcomeCallable Address_purificationClient::completeAddressCallable(const CompleteAddressRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAlgorithmResultOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<CompleteAddressOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAlgorithmResult(request);
|
||||
return this->completeAddress(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Address_purificationClient::GetConsoleResultOutcome Address_purificationClient::getConsoleResult(const GetConsoleResultRequest &request) const
|
||||
Address_purificationClient::CorrectAddressOutcome Address_purificationClient::correctAddress(const CorrectAddressRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetConsoleResultOutcome(endpointOutcome.error());
|
||||
return CorrectAddressOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetConsoleResultOutcome(GetConsoleResultResult(outcome.result()));
|
||||
return CorrectAddressOutcome(CorrectAddressResult(outcome.result()));
|
||||
else
|
||||
return GetConsoleResultOutcome(outcome.error());
|
||||
return CorrectAddressOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Address_purificationClient::getConsoleResultAsync(const GetConsoleResultRequest& request, const GetConsoleResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void Address_purificationClient::correctAddressAsync(const CorrectAddressRequest& request, const CorrectAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getConsoleResult(request), context);
|
||||
handler(this, request, correctAddress(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Address_purificationClient::GetConsoleResultOutcomeCallable Address_purificationClient::getConsoleResultCallable(const GetConsoleResultRequest &request) const
|
||||
Address_purificationClient::CorrectAddressOutcomeCallable Address_purificationClient::correctAddressCallable(const CorrectAddressRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetConsoleResultOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<CorrectAddressOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getConsoleResult(request);
|
||||
return this->correctAddress(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Address_purificationClient::GetReportOutcome Address_purificationClient::getReport(const GetReportRequest &request) const
|
||||
Address_purificationClient::ExtractAddressOutcome Address_purificationClient::extractAddress(const ExtractAddressRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetReportOutcome(endpointOutcome.error());
|
||||
return ExtractAddressOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetReportOutcome(GetReportResult(outcome.result()));
|
||||
return ExtractAddressOutcome(ExtractAddressResult(outcome.result()));
|
||||
else
|
||||
return GetReportOutcome(outcome.error());
|
||||
return ExtractAddressOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Address_purificationClient::getReportAsync(const GetReportRequest& request, const GetReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void Address_purificationClient::extractAddressAsync(const ExtractAddressRequest& request, const ExtractAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getReport(request), context);
|
||||
handler(this, request, extractAddress(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Address_purificationClient::GetReportOutcomeCallable Address_purificationClient::getReportCallable(const GetReportRequest &request) const
|
||||
Address_purificationClient::ExtractAddressOutcomeCallable Address_purificationClient::extractAddressCallable(const ExtractAddressRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetReportOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<ExtractAddressOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getReport(request);
|
||||
return this->extractAddress(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Address_purificationClient::GetUserInfomationOutcome Address_purificationClient::getUserInfomation(const GetUserInfomationRequest &request) const
|
||||
Address_purificationClient::ExtractNameOutcome Address_purificationClient::extractName(const ExtractNameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetUserInfomationOutcome(endpointOutcome.error());
|
||||
return ExtractNameOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetUserInfomationOutcome(GetUserInfomationResult(outcome.result()));
|
||||
return ExtractNameOutcome(ExtractNameResult(outcome.result()));
|
||||
else
|
||||
return GetUserInfomationOutcome(outcome.error());
|
||||
return ExtractNameOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Address_purificationClient::getUserInfomationAsync(const GetUserInfomationRequest& request, const GetUserInfomationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void Address_purificationClient::extractNameAsync(const ExtractNameRequest& request, const ExtractNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getUserInfomation(request), context);
|
||||
handler(this, request, extractName(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Address_purificationClient::GetUserInfomationOutcomeCallable Address_purificationClient::getUserInfomationCallable(const GetUserInfomationRequest &request) const
|
||||
Address_purificationClient::ExtractNameOutcomeCallable Address_purificationClient::extractNameCallable(const ExtractNameRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetUserInfomationOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<ExtractNameOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getUserInfomation(request);
|
||||
return this->extractName(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)(); }));
|
||||
|
||||
95
address-purification/src/model/ClassifyPOIRequest.cc
Normal file
95
address-purification/src/model/ClassifyPOIRequest.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/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);
|
||||
}
|
||||
|
||||
@@ -14,52 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/GetReportResult.h>
|
||||
#include <alibabacloud/address-purification/model/ClassifyPOIResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
GetReportResult::GetReportResult() :
|
||||
ClassifyPOIResult::ClassifyPOIResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetReportResult::GetReportResult(const std::string &payload) :
|
||||
ClassifyPOIResult::ClassifyPOIResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetReportResult::~GetReportResult()
|
||||
ClassifyPOIResult::~ClassifyPOIResult()
|
||||
{}
|
||||
|
||||
void GetReportResult::parse(const std::string &payload)
|
||||
void ClassifyPOIResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetReportResult::getData()const
|
||||
std::string ClassifyPOIResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetReportResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string GetReportResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
95
address-purification/src/model/CompleteAddressRequest.cc
Normal file
95
address-purification/src/model/CompleteAddressRequest.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/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);
|
||||
}
|
||||
|
||||
51
address-purification/src/model/CompleteAddressResult.cc
Normal file
51
address-purification/src/model/CompleteAddressResult.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/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_;
|
||||
}
|
||||
|
||||
95
address-purification/src/model/CorrectAddressRequest.cc
Normal file
95
address-purification/src/model/CorrectAddressRequest.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/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);
|
||||
}
|
||||
|
||||
51
address-purification/src/model/CorrectAddressResult.cc
Normal file
51
address-purification/src/model/CorrectAddressResult.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/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_;
|
||||
}
|
||||
|
||||
95
address-purification/src/model/ExtractAddressRequest.cc
Normal file
95
address-purification/src/model/ExtractAddressRequest.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/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);
|
||||
}
|
||||
|
||||
51
address-purification/src/model/ExtractAddressResult.cc
Normal file
51
address-purification/src/model/ExtractAddressResult.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/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_;
|
||||
}
|
||||
|
||||
95
address-purification/src/model/ExtractNameRequest.cc
Normal file
95
address-purification/src/model/ExtractNameRequest.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/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);
|
||||
}
|
||||
|
||||
51
address-purification/src/model/ExtractNameResult.cc
Normal file
51
address-purification/src/model/ExtractNameResult.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/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_;
|
||||
}
|
||||
|
||||
95
address-purification/src/model/ExtractPhoneRequest.cc
Normal file
95
address-purification/src/model/ExtractPhoneRequest.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/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);
|
||||
}
|
||||
|
||||
51
address-purification/src/model/ExtractPhoneResult.cc
Normal file
51
address-purification/src/model/ExtractPhoneResult.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/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_;
|
||||
}
|
||||
|
||||
@@ -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/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);
|
||||
}
|
||||
|
||||
@@ -14,52 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/GetUserInfomationResult.h>
|
||||
#include <alibabacloud/address-purification/model/GetAddressDivisionCodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
GetUserInfomationResult::GetUserInfomationResult() :
|
||||
GetAddressDivisionCodeResult::GetAddressDivisionCodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserInfomationResult::GetUserInfomationResult(const std::string &payload) :
|
||||
GetAddressDivisionCodeResult::GetAddressDivisionCodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserInfomationResult::~GetUserInfomationResult()
|
||||
GetAddressDivisionCodeResult::~GetAddressDivisionCodeResult()
|
||||
{}
|
||||
|
||||
void GetUserInfomationResult::parse(const std::string &payload)
|
||||
void GetAddressDivisionCodeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetUserInfomationResult::getData()const
|
||||
std::string GetAddressDivisionCodeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetUserInfomationResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string GetUserInfomationResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -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/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);
|
||||
}
|
||||
|
||||
51
address-purification/src/model/GetAddressSimilarityResult.cc
Normal file
51
address-purification/src/model/GetAddressSimilarityResult.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/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_;
|
||||
}
|
||||
|
||||
@@ -1,62 +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/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);
|
||||
}
|
||||
|
||||
@@ -1,73 +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/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);
|
||||
}
|
||||
|
||||
@@ -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/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);
|
||||
}
|
||||
|
||||
@@ -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/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);
|
||||
}
|
||||
|
||||
95
address-purification/src/model/GetZipcodeRequest.cc
Normal file
95
address-purification/src/model/GetZipcodeRequest.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/GetZipcodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Address_purification::Model::GetZipcodeRequest;
|
||||
|
||||
GetZipcodeRequest::GetZipcodeRequest() :
|
||||
RpcServiceRequest("address-purification", "2019-11-18", "GetZipcode")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetZipcodeRequest::~GetZipcodeRequest()
|
||||
{}
|
||||
|
||||
std::string GetZipcodeRequest::getDefaultProvince()const
|
||||
{
|
||||
return defaultProvince_;
|
||||
}
|
||||
|
||||
void GetZipcodeRequest::setDefaultProvince(const std::string& defaultProvince)
|
||||
{
|
||||
defaultProvince_ = defaultProvince;
|
||||
setBodyParameter("DefaultProvince", defaultProvince);
|
||||
}
|
||||
|
||||
std::string GetZipcodeRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void GetZipcodeRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string GetZipcodeRequest::getDefaultCity()const
|
||||
{
|
||||
return defaultCity_;
|
||||
}
|
||||
|
||||
void GetZipcodeRequest::setDefaultCity(const std::string& defaultCity)
|
||||
{
|
||||
defaultCity_ = defaultCity;
|
||||
setBodyParameter("DefaultCity", defaultCity);
|
||||
}
|
||||
|
||||
std::string GetZipcodeRequest::getDefaultDistrict()const
|
||||
{
|
||||
return defaultDistrict_;
|
||||
}
|
||||
|
||||
void GetZipcodeRequest::setDefaultDistrict(const std::string& defaultDistrict)
|
||||
{
|
||||
defaultDistrict_ = defaultDistrict;
|
||||
setBodyParameter("DefaultDistrict", defaultDistrict);
|
||||
}
|
||||
|
||||
std::string GetZipcodeRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void GetZipcodeRequest::setAppKey(const std::string& appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setBodyParameter("AppKey", appKey);
|
||||
}
|
||||
|
||||
std::string GetZipcodeRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void GetZipcodeRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/waf-openapi/model/CreateIPBlockResult.h>
|
||||
#include <alibabacloud/address-purification/model/GetZipcodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Waf_openapi;
|
||||
using namespace AlibabaCloud::Waf_openapi::Model;
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
CreateIPBlockResult::CreateIPBlockResult() :
|
||||
GetZipcodeResult::GetZipcodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIPBlockResult::CreateIPBlockResult(const std::string &payload) :
|
||||
GetZipcodeResult::GetZipcodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIPBlockResult::~CreateIPBlockResult()
|
||||
GetZipcodeResult::~GetZipcodeResult()
|
||||
{}
|
||||
|
||||
void CreateIPBlockResult::parse(const std::string &payload)
|
||||
void GetZipcodeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -44,7 +44,7 @@ void CreateIPBlockResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIPBlockResult::getData()const
|
||||
std::string GetZipcodeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
95
address-purification/src/model/StructureAddressRequest.cc
Normal file
95
address-purification/src/model/StructureAddressRequest.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/StructureAddressRequest.h>
|
||||
|
||||
using AlibabaCloud::Address_purification::Model::StructureAddressRequest;
|
||||
|
||||
StructureAddressRequest::StructureAddressRequest() :
|
||||
RpcServiceRequest("address-purification", "2019-11-18", "StructureAddress")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StructureAddressRequest::~StructureAddressRequest()
|
||||
{}
|
||||
|
||||
std::string StructureAddressRequest::getDefaultProvince()const
|
||||
{
|
||||
return defaultProvince_;
|
||||
}
|
||||
|
||||
void StructureAddressRequest::setDefaultProvince(const std::string& defaultProvince)
|
||||
{
|
||||
defaultProvince_ = defaultProvince;
|
||||
setBodyParameter("DefaultProvince", defaultProvince);
|
||||
}
|
||||
|
||||
std::string StructureAddressRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void StructureAddressRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string StructureAddressRequest::getDefaultCity()const
|
||||
{
|
||||
return defaultCity_;
|
||||
}
|
||||
|
||||
void StructureAddressRequest::setDefaultCity(const std::string& defaultCity)
|
||||
{
|
||||
defaultCity_ = defaultCity;
|
||||
setBodyParameter("DefaultCity", defaultCity);
|
||||
}
|
||||
|
||||
std::string StructureAddressRequest::getDefaultDistrict()const
|
||||
{
|
||||
return defaultDistrict_;
|
||||
}
|
||||
|
||||
void StructureAddressRequest::setDefaultDistrict(const std::string& defaultDistrict)
|
||||
{
|
||||
defaultDistrict_ = defaultDistrict;
|
||||
setBodyParameter("DefaultDistrict", defaultDistrict);
|
||||
}
|
||||
|
||||
std::string StructureAddressRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void StructureAddressRequest::setAppKey(const std::string& appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setBodyParameter("AppKey", appKey);
|
||||
}
|
||||
|
||||
std::string StructureAddressRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void StructureAddressRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
@@ -14,52 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/GetConsoleResultResult.h>
|
||||
#include <alibabacloud/address-purification/model/StructureAddressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
GetConsoleResultResult::GetConsoleResultResult() :
|
||||
StructureAddressResult::StructureAddressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetConsoleResultResult::GetConsoleResultResult(const std::string &payload) :
|
||||
StructureAddressResult::StructureAddressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetConsoleResultResult::~GetConsoleResultResult()
|
||||
StructureAddressResult::~StructureAddressResult()
|
||||
{}
|
||||
|
||||
void GetConsoleResultResult::parse(const std::string &payload)
|
||||
void StructureAddressResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetConsoleResultResult::getData()const
|
||||
std::string StructureAddressResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetConsoleResultResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string GetConsoleResultResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -14,36 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/DescribeProductRequest.h>
|
||||
#include <alibabacloud/address-purification/model/UpdateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Address_purification::Model::DescribeProductRequest;
|
||||
using AlibabaCloud::Address_purification::Model::UpdateProjectRequest;
|
||||
|
||||
DescribeProductRequest::DescribeProductRequest() :
|
||||
RpcServiceRequest("address-purification", "2019-11-18", "DescribeProduct")
|
||||
UpdateProjectRequest::UpdateProjectRequest() :
|
||||
RpcServiceRequest("address-purification", "2019-11-18", "UpdateProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeProductRequest::~DescribeProductRequest()
|
||||
UpdateProjectRequest::~UpdateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeProductRequest::getServiceCode()const
|
||||
std::string UpdateProjectRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DescribeProductRequest::setServiceCode(const std::string& serviceCode)
|
||||
void UpdateProjectRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string DescribeProductRequest::getParameters()const
|
||||
std::string UpdateProjectRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void DescribeProductRequest::setParameters(const std::string& parameters)
|
||||
void UpdateProjectRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setBodyParameter("Parameters", parameters);
|
||||
51
address-purification/src/model/UpdateProjectResult.cc
Normal file
51
address-purification/src/model/UpdateProjectResult.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/UpdateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
UpdateProjectResult::UpdateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateProjectResult::UpdateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateProjectResult::~UpdateProjectResult()
|
||||
{}
|
||||
|
||||
void UpdateProjectResult::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 UpdateProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,10 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/ActiveMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/BatchCreateDeviceRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/BatchCreateDeviceResult.h
|
||||
include/alibabacloud/aliyuncvc/model/BatchDeleteDevicesRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/BatchDeleteDevicesResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CallDeviceRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CallDeviceResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateDeviceMeetingRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateDeviceMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateEvaluationRequest.h
|
||||
@@ -63,6 +67,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/GetMeetingInternationalResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetMeetingMemberRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetMeetingMemberResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetMembersRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetMembersResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetUserRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetUserResult.h
|
||||
include/alibabacloud/aliyuncvc/model/JoinDeviceMeetingRequest.h
|
||||
@@ -75,6 +81,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/JoinMeetingInternationalResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListDeviceIpRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ListDeviceIpResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListDevicesRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ListDevicesResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListEvaluationsRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ListEvaluationsResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListIsvStatisticsRequest.h
|
||||
@@ -95,6 +103,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/StartLiveResult.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatResult.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutResult.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateLivePasswordRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateLivePasswordResult.h )
|
||||
|
||||
@@ -106,6 +116,10 @@ set(aliyuncvc_src
|
||||
src/model/ActiveMeetingResult.cc
|
||||
src/model/BatchCreateDeviceRequest.cc
|
||||
src/model/BatchCreateDeviceResult.cc
|
||||
src/model/BatchDeleteDevicesRequest.cc
|
||||
src/model/BatchDeleteDevicesResult.cc
|
||||
src/model/CallDeviceRequest.cc
|
||||
src/model/CallDeviceResult.cc
|
||||
src/model/CreateDeviceMeetingRequest.cc
|
||||
src/model/CreateDeviceMeetingResult.cc
|
||||
src/model/CreateEvaluationRequest.cc
|
||||
@@ -142,6 +156,8 @@ set(aliyuncvc_src
|
||||
src/model/GetMeetingInternationalResult.cc
|
||||
src/model/GetMeetingMemberRequest.cc
|
||||
src/model/GetMeetingMemberResult.cc
|
||||
src/model/GetMembersRequest.cc
|
||||
src/model/GetMembersResult.cc
|
||||
src/model/GetUserRequest.cc
|
||||
src/model/GetUserResult.cc
|
||||
src/model/JoinDeviceMeetingRequest.cc
|
||||
@@ -154,6 +170,8 @@ set(aliyuncvc_src
|
||||
src/model/JoinMeetingInternationalResult.cc
|
||||
src/model/ListDeviceIpRequest.cc
|
||||
src/model/ListDeviceIpResult.cc
|
||||
src/model/ListDevicesRequest.cc
|
||||
src/model/ListDevicesResult.cc
|
||||
src/model/ListEvaluationsRequest.cc
|
||||
src/model/ListEvaluationsResult.cc
|
||||
src/model/ListIsvStatisticsRequest.cc
|
||||
@@ -174,6 +192,8 @@ set(aliyuncvc_src
|
||||
src/model/StartLiveResult.cc
|
||||
src/model/UpdateDeviceHeartBeatRequest.cc
|
||||
src/model/UpdateDeviceHeartBeatResult.cc
|
||||
src/model/UpdateGonggeLayoutRequest.cc
|
||||
src/model/UpdateGonggeLayoutResult.cc
|
||||
src/model/UpdateLivePasswordRequest.cc
|
||||
src/model/UpdateLivePasswordResult.cc )
|
||||
|
||||
|
||||
@@ -28,6 +28,10 @@
|
||||
#include "model/ActiveMeetingResult.h"
|
||||
#include "model/BatchCreateDeviceRequest.h"
|
||||
#include "model/BatchCreateDeviceResult.h"
|
||||
#include "model/BatchDeleteDevicesRequest.h"
|
||||
#include "model/BatchDeleteDevicesResult.h"
|
||||
#include "model/CallDeviceRequest.h"
|
||||
#include "model/CallDeviceResult.h"
|
||||
#include "model/CreateDeviceMeetingRequest.h"
|
||||
#include "model/CreateDeviceMeetingResult.h"
|
||||
#include "model/CreateEvaluationRequest.h"
|
||||
@@ -64,6 +68,8 @@
|
||||
#include "model/GetMeetingInternationalResult.h"
|
||||
#include "model/GetMeetingMemberRequest.h"
|
||||
#include "model/GetMeetingMemberResult.h"
|
||||
#include "model/GetMembersRequest.h"
|
||||
#include "model/GetMembersResult.h"
|
||||
#include "model/GetUserRequest.h"
|
||||
#include "model/GetUserResult.h"
|
||||
#include "model/JoinDeviceMeetingRequest.h"
|
||||
@@ -76,6 +82,8 @@
|
||||
#include "model/JoinMeetingInternationalResult.h"
|
||||
#include "model/ListDeviceIpRequest.h"
|
||||
#include "model/ListDeviceIpResult.h"
|
||||
#include "model/ListDevicesRequest.h"
|
||||
#include "model/ListDevicesResult.h"
|
||||
#include "model/ListEvaluationsRequest.h"
|
||||
#include "model/ListEvaluationsResult.h"
|
||||
#include "model/ListIsvStatisticsRequest.h"
|
||||
@@ -96,6 +104,8 @@
|
||||
#include "model/StartLiveResult.h"
|
||||
#include "model/UpdateDeviceHeartBeatRequest.h"
|
||||
#include "model/UpdateDeviceHeartBeatResult.h"
|
||||
#include "model/UpdateGonggeLayoutRequest.h"
|
||||
#include "model/UpdateGonggeLayoutResult.h"
|
||||
#include "model/UpdateLivePasswordRequest.h"
|
||||
#include "model/UpdateLivePasswordResult.h"
|
||||
|
||||
@@ -116,6 +126,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::BatchCreateDeviceResult> BatchCreateDeviceOutcome;
|
||||
typedef std::future<BatchCreateDeviceOutcome> BatchCreateDeviceOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::BatchCreateDeviceRequest&, const BatchCreateDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchCreateDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::BatchDeleteDevicesResult> BatchDeleteDevicesOutcome;
|
||||
typedef std::future<BatchDeleteDevicesOutcome> BatchDeleteDevicesOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::BatchDeleteDevicesRequest&, const BatchDeleteDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchDeleteDevicesAsyncHandler;
|
||||
typedef Outcome<Error, Model::CallDeviceResult> CallDeviceOutcome;
|
||||
typedef std::future<CallDeviceOutcome> CallDeviceOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CallDeviceRequest&, const CallDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CallDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDeviceMeetingResult> CreateDeviceMeetingOutcome;
|
||||
typedef std::future<CreateDeviceMeetingOutcome> CreateDeviceMeetingOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CreateDeviceMeetingRequest&, const CreateDeviceMeetingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeviceMeetingAsyncHandler;
|
||||
@@ -170,6 +186,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetMeetingMemberResult> GetMeetingMemberOutcome;
|
||||
typedef std::future<GetMeetingMemberOutcome> GetMeetingMemberOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetMeetingMemberRequest&, const GetMeetingMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMeetingMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMembersResult> GetMembersOutcome;
|
||||
typedef std::future<GetMembersOutcome> GetMembersOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetMembersRequest&, const GetMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMembersAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
||||
@@ -188,6 +207,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListDeviceIpResult> ListDeviceIpOutcome;
|
||||
typedef std::future<ListDeviceIpOutcome> ListDeviceIpOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ListDeviceIpRequest&, const ListDeviceIpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDeviceIpAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDevicesResult> ListDevicesOutcome;
|
||||
typedef std::future<ListDevicesOutcome> ListDevicesOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ListDevicesRequest&, const ListDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDevicesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListEvaluationsResult> ListEvaluationsOutcome;
|
||||
typedef std::future<ListEvaluationsOutcome> ListEvaluationsOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ListEvaluationsRequest&, const ListEvaluationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListEvaluationsAsyncHandler;
|
||||
@@ -218,6 +240,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateDeviceHeartBeatResult> UpdateDeviceHeartBeatOutcome;
|
||||
typedef std::future<UpdateDeviceHeartBeatOutcome> UpdateDeviceHeartBeatOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::UpdateDeviceHeartBeatRequest&, const UpdateDeviceHeartBeatOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDeviceHeartBeatAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateGonggeLayoutResult> UpdateGonggeLayoutOutcome;
|
||||
typedef std::future<UpdateGonggeLayoutOutcome> UpdateGonggeLayoutOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::UpdateGonggeLayoutRequest&, const UpdateGonggeLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateGonggeLayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLivePasswordResult> UpdateLivePasswordOutcome;
|
||||
typedef std::future<UpdateLivePasswordOutcome> UpdateLivePasswordOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::UpdateLivePasswordRequest&, const UpdateLivePasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLivePasswordAsyncHandler;
|
||||
@@ -235,6 +260,12 @@ namespace AlibabaCloud
|
||||
BatchCreateDeviceOutcome batchCreateDevice(const Model::BatchCreateDeviceRequest &request)const;
|
||||
void batchCreateDeviceAsync(const Model::BatchCreateDeviceRequest& request, const BatchCreateDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchCreateDeviceOutcomeCallable batchCreateDeviceCallable(const Model::BatchCreateDeviceRequest& request) const;
|
||||
BatchDeleteDevicesOutcome batchDeleteDevices(const Model::BatchDeleteDevicesRequest &request)const;
|
||||
void batchDeleteDevicesAsync(const Model::BatchDeleteDevicesRequest& request, const BatchDeleteDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchDeleteDevicesOutcomeCallable batchDeleteDevicesCallable(const Model::BatchDeleteDevicesRequest& request) const;
|
||||
CallDeviceOutcome callDevice(const Model::CallDeviceRequest &request)const;
|
||||
void callDeviceAsync(const Model::CallDeviceRequest& request, const CallDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CallDeviceOutcomeCallable callDeviceCallable(const Model::CallDeviceRequest& request) const;
|
||||
CreateDeviceMeetingOutcome createDeviceMeeting(const Model::CreateDeviceMeetingRequest &request)const;
|
||||
void createDeviceMeetingAsync(const Model::CreateDeviceMeetingRequest& request, const CreateDeviceMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDeviceMeetingOutcomeCallable createDeviceMeetingCallable(const Model::CreateDeviceMeetingRequest& request) const;
|
||||
@@ -289,6 +320,9 @@ namespace AlibabaCloud
|
||||
GetMeetingMemberOutcome getMeetingMember(const Model::GetMeetingMemberRequest &request)const;
|
||||
void getMeetingMemberAsync(const Model::GetMeetingMemberRequest& request, const GetMeetingMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMeetingMemberOutcomeCallable getMeetingMemberCallable(const Model::GetMeetingMemberRequest& request) const;
|
||||
GetMembersOutcome getMembers(const Model::GetMembersRequest &request)const;
|
||||
void getMembersAsync(const Model::GetMembersRequest& request, const GetMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMembersOutcomeCallable getMembersCallable(const Model::GetMembersRequest& request) const;
|
||||
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
||||
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
||||
@@ -307,6 +341,9 @@ namespace AlibabaCloud
|
||||
ListDeviceIpOutcome listDeviceIp(const Model::ListDeviceIpRequest &request)const;
|
||||
void listDeviceIpAsync(const Model::ListDeviceIpRequest& request, const ListDeviceIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDeviceIpOutcomeCallable listDeviceIpCallable(const Model::ListDeviceIpRequest& request) const;
|
||||
ListDevicesOutcome listDevices(const Model::ListDevicesRequest &request)const;
|
||||
void listDevicesAsync(const Model::ListDevicesRequest& request, const ListDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDevicesOutcomeCallable listDevicesCallable(const Model::ListDevicesRequest& request) const;
|
||||
ListEvaluationsOutcome listEvaluations(const Model::ListEvaluationsRequest &request)const;
|
||||
void listEvaluationsAsync(const Model::ListEvaluationsRequest& request, const ListEvaluationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListEvaluationsOutcomeCallable listEvaluationsCallable(const Model::ListEvaluationsRequest& request) const;
|
||||
@@ -337,6 +374,9 @@ namespace AlibabaCloud
|
||||
UpdateDeviceHeartBeatOutcome updateDeviceHeartBeat(const Model::UpdateDeviceHeartBeatRequest &request)const;
|
||||
void updateDeviceHeartBeatAsync(const Model::UpdateDeviceHeartBeatRequest& request, const UpdateDeviceHeartBeatAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDeviceHeartBeatOutcomeCallable updateDeviceHeartBeatCallable(const Model::UpdateDeviceHeartBeatRequest& request) const;
|
||||
UpdateGonggeLayoutOutcome updateGonggeLayout(const Model::UpdateGonggeLayoutRequest &request)const;
|
||||
void updateGonggeLayoutAsync(const Model::UpdateGonggeLayoutRequest& request, const UpdateGonggeLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateGonggeLayoutOutcomeCallable updateGonggeLayoutCallable(const Model::UpdateGonggeLayoutRequest& request) const;
|
||||
UpdateLivePasswordOutcome updateLivePassword(const Model::UpdateLivePasswordRequest &request)const;
|
||||
void updateLivePasswordAsync(const Model::UpdateLivePasswordRequest& request, const UpdateLivePasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLivePasswordOutcomeCallable updateLivePasswordCallable(const Model::UpdateLivePasswordRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_BATCHDELETEDEVICESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_BATCHDELETEDEVICESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT BatchDeleteDevicesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BatchDeleteDevicesRequest();
|
||||
~BatchDeleteDevicesRequest();
|
||||
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getSN()const;
|
||||
void setSN(const std::string& sN);
|
||||
|
||||
private:
|
||||
std::string groupId_;
|
||||
std::string sN_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_BATCHDELETEDEVICESREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_BATCHDELETEDEVICESRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_BATCHDELETEDEVICESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT BatchDeleteDevicesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
BatchDeleteDevicesResult();
|
||||
explicit BatchDeleteDevicesResult(const std::string &payload);
|
||||
~BatchDeleteDevicesResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_BATCHDELETEDEVICESRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_CALLDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CALLDEVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CallDeviceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CallDeviceRequest();
|
||||
~CallDeviceRequest();
|
||||
|
||||
std::string getInviteName()const;
|
||||
void setInviteName(const std::string& inviteName);
|
||||
std::string getOperateUserId()const;
|
||||
void setOperateUserId(const std::string& operateUserId);
|
||||
bool getJoinMeetingFlag()const;
|
||||
void setJoinMeetingFlag(bool joinMeetingFlag);
|
||||
std::string getMeetingCode()const;
|
||||
void setMeetingCode(const std::string& meetingCode);
|
||||
std::string getSN()const;
|
||||
void setSN(const std::string& sN);
|
||||
|
||||
private:
|
||||
std::string inviteName_;
|
||||
std::string operateUserId_;
|
||||
bool joinMeetingFlag_;
|
||||
std::string meetingCode_;
|
||||
std::string sN_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CALLDEVICEREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_CALLDEVICERESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CALLDEVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CallDeviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CallDeviceResult();
|
||||
explicit CallDeviceResult(const std::string &payload);
|
||||
~CallDeviceResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getMessageId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
std::string messageId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CALLDEVICERESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEMBERSREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEMBERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetMembersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMembersRequest();
|
||||
~GetMembersRequest();
|
||||
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
|
||||
private:
|
||||
std::string meetingUUID_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEMBERSREQUEST_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEMBERSRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEMBERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetMembersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MeetingInfo
|
||||
{
|
||||
struct MemberListItem
|
||||
{
|
||||
std::string status;
|
||||
std::string userName;
|
||||
std::string memberUUID;
|
||||
std::string userId;
|
||||
std::string userAvatarUrl;
|
||||
};
|
||||
std::string meetingCode;
|
||||
std::string meetingUUID;
|
||||
std::vector<MemberListItem> memberList;
|
||||
std::string userId;
|
||||
long createTime;
|
||||
std::string meetingName;
|
||||
long validTime;
|
||||
};
|
||||
|
||||
|
||||
GetMembersResult();
|
||||
explicit GetMembersResult(const std::string &payload);
|
||||
~GetMembersResult();
|
||||
MeetingInfo getMeetingInfo()const;
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
MeetingInfo meetingInfo_;
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETMEMBERSRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_LISTDEVICESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTDEVICESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListDevicesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListDevicesRequest();
|
||||
~ListDevicesRequest();
|
||||
|
||||
std::string getCastScreenCode()const;
|
||||
void setCastScreenCode(const std::string& castScreenCode);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getSN()const;
|
||||
void setSN(const std::string& sN);
|
||||
|
||||
private:
|
||||
std::string castScreenCode_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string sN_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTDEVICESREQUEST_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_LISTDEVICESRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTDEVICESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListDevicesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Device
|
||||
{
|
||||
std::string status;
|
||||
std::string castScreenCode;
|
||||
std::string createTime;
|
||||
std::string pictureUrl;
|
||||
std::string sN;
|
||||
std::string conferenceName;
|
||||
std::string activationCode;
|
||||
std::string conferenceCode;
|
||||
};
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
int total;
|
||||
std::vector<Device> devices;
|
||||
};
|
||||
|
||||
|
||||
ListDevicesResult();
|
||||
explicit ListDevicesResult(const std::string &payload);
|
||||
~ListDevicesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTDEVICESRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT UpdateGonggeLayoutRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateGonggeLayoutRequest();
|
||||
~UpdateGonggeLayoutRequest();
|
||||
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
std::string getVideoCount()const;
|
||||
void setVideoCount(const std::string& videoCount);
|
||||
std::string getValue()const;
|
||||
void setValue(const std::string& value);
|
||||
|
||||
private:
|
||||
std::string meetingUUID_;
|
||||
std::string videoCount_;
|
||||
std::string value_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT UpdateGonggeLayoutResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateGonggeLayoutResult();
|
||||
explicit UpdateGonggeLayoutResult(const std::string &payload);
|
||||
~UpdateGonggeLayoutResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTRESULT_H_
|
||||
@@ -159,6 +159,78 @@ AliyuncvcClient::BatchCreateDeviceOutcomeCallable AliyuncvcClient::batchCreateDe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::BatchDeleteDevicesOutcome AliyuncvcClient::batchDeleteDevices(const BatchDeleteDevicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchDeleteDevicesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchDeleteDevicesOutcome(BatchDeleteDevicesResult(outcome.result()));
|
||||
else
|
||||
return BatchDeleteDevicesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::batchDeleteDevicesAsync(const BatchDeleteDevicesRequest& request, const BatchDeleteDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchDeleteDevices(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::BatchDeleteDevicesOutcomeCallable AliyuncvcClient::batchDeleteDevicesCallable(const BatchDeleteDevicesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchDeleteDevicesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchDeleteDevices(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::CallDeviceOutcome AliyuncvcClient::callDevice(const CallDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CallDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CallDeviceOutcome(CallDeviceResult(outcome.result()));
|
||||
else
|
||||
return CallDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::callDeviceAsync(const CallDeviceRequest& request, const CallDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, callDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::CallDeviceOutcomeCallable AliyuncvcClient::callDeviceCallable(const CallDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CallDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->callDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::CreateDeviceMeetingOutcome AliyuncvcClient::createDeviceMeeting(const CreateDeviceMeetingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -807,6 +879,42 @@ AliyuncvcClient::GetMeetingMemberOutcomeCallable AliyuncvcClient::getMeetingMemb
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetMembersOutcome AliyuncvcClient::getMembers(const GetMembersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMembersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMembersOutcome(GetMembersResult(outcome.result()));
|
||||
else
|
||||
return GetMembersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::getMembersAsync(const GetMembersRequest& request, const GetMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMembers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetMembersOutcomeCallable AliyuncvcClient::getMembersCallable(const GetMembersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMembersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMembers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetUserOutcome AliyuncvcClient::getUser(const GetUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1131,42 @@ AliyuncvcClient::ListDeviceIpOutcomeCallable AliyuncvcClient::listDeviceIpCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListDevicesOutcome AliyuncvcClient::listDevices(const ListDevicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDevicesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDevicesOutcome(ListDevicesResult(outcome.result()));
|
||||
else
|
||||
return ListDevicesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::listDevicesAsync(const ListDevicesRequest& request, const ListDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDevices(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListDevicesOutcomeCallable AliyuncvcClient::listDevicesCallable(const ListDevicesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDevicesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDevices(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListEvaluationsOutcome AliyuncvcClient::listEvaluations(const ListEvaluationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1383,6 +1527,42 @@ AliyuncvcClient::UpdateDeviceHeartBeatOutcomeCallable AliyuncvcClient::updateDev
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::UpdateGonggeLayoutOutcome AliyuncvcClient::updateGonggeLayout(const UpdateGonggeLayoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateGonggeLayoutOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateGonggeLayoutOutcome(UpdateGonggeLayoutResult(outcome.result()));
|
||||
else
|
||||
return UpdateGonggeLayoutOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::updateGonggeLayoutAsync(const UpdateGonggeLayoutRequest& request, const UpdateGonggeLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateGonggeLayout(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::UpdateGonggeLayoutOutcomeCallable AliyuncvcClient::updateGonggeLayoutCallable(const UpdateGonggeLayoutRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateGonggeLayoutOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateGonggeLayout(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::UpdateLivePasswordOutcome AliyuncvcClient::updateLivePassword(const UpdateLivePasswordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
51
aliyuncvc/src/model/BatchDeleteDevicesRequest.cc
Normal file
51
aliyuncvc/src/model/BatchDeleteDevicesRequest.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/aliyuncvc/model/BatchDeleteDevicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::BatchDeleteDevicesRequest;
|
||||
|
||||
BatchDeleteDevicesRequest::BatchDeleteDevicesRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2020-03-30", "BatchDeleteDevices")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchDeleteDevicesRequest::~BatchDeleteDevicesRequest()
|
||||
{}
|
||||
|
||||
std::string BatchDeleteDevicesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void BatchDeleteDevicesRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setBodyParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string BatchDeleteDevicesRequest::getSN()const
|
||||
{
|
||||
return sN_;
|
||||
}
|
||||
|
||||
void BatchDeleteDevicesRequest::setSN(const std::string& sN)
|
||||
{
|
||||
sN_ = sN;
|
||||
setBodyParameter("SN", sN);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/BatchDeleteDevicesResult.cc
Normal file
65
aliyuncvc/src/model/BatchDeleteDevicesResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/BatchDeleteDevicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
BatchDeleteDevicesResult::BatchDeleteDevicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchDeleteDevicesResult::BatchDeleteDevicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchDeleteDevicesResult::~BatchDeleteDevicesResult()
|
||||
{}
|
||||
|
||||
void BatchDeleteDevicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string BatchDeleteDevicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int BatchDeleteDevicesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool BatchDeleteDevicesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
aliyuncvc/src/model/CallDeviceRequest.cc
Normal file
84
aliyuncvc/src/model/CallDeviceRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/aliyuncvc/model/CallDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::CallDeviceRequest;
|
||||
|
||||
CallDeviceRequest::CallDeviceRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "CallDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CallDeviceRequest::~CallDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string CallDeviceRequest::getInviteName()const
|
||||
{
|
||||
return inviteName_;
|
||||
}
|
||||
|
||||
void CallDeviceRequest::setInviteName(const std::string& inviteName)
|
||||
{
|
||||
inviteName_ = inviteName;
|
||||
setBodyParameter("InviteName", inviteName);
|
||||
}
|
||||
|
||||
std::string CallDeviceRequest::getOperateUserId()const
|
||||
{
|
||||
return operateUserId_;
|
||||
}
|
||||
|
||||
void CallDeviceRequest::setOperateUserId(const std::string& operateUserId)
|
||||
{
|
||||
operateUserId_ = operateUserId;
|
||||
setBodyParameter("OperateUserId", operateUserId);
|
||||
}
|
||||
|
||||
bool CallDeviceRequest::getJoinMeetingFlag()const
|
||||
{
|
||||
return joinMeetingFlag_;
|
||||
}
|
||||
|
||||
void CallDeviceRequest::setJoinMeetingFlag(bool joinMeetingFlag)
|
||||
{
|
||||
joinMeetingFlag_ = joinMeetingFlag;
|
||||
setParameter("JoinMeetingFlag", joinMeetingFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CallDeviceRequest::getMeetingCode()const
|
||||
{
|
||||
return meetingCode_;
|
||||
}
|
||||
|
||||
void CallDeviceRequest::setMeetingCode(const std::string& meetingCode)
|
||||
{
|
||||
meetingCode_ = meetingCode;
|
||||
setBodyParameter("MeetingCode", meetingCode);
|
||||
}
|
||||
|
||||
std::string CallDeviceRequest::getSN()const
|
||||
{
|
||||
return sN_;
|
||||
}
|
||||
|
||||
void CallDeviceRequest::setSN(const std::string& sN)
|
||||
{
|
||||
sN_ = sN;
|
||||
setBodyParameter("SN", sN);
|
||||
}
|
||||
|
||||
72
aliyuncvc/src/model/CallDeviceResult.cc
Normal file
72
aliyuncvc/src/model/CallDeviceResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/CallDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
CallDeviceResult::CallDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CallDeviceResult::CallDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CallDeviceResult::~CallDeviceResult()
|
||||
{}
|
||||
|
||||
void CallDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["MessageId"].isNull())
|
||||
messageId_ = value["MessageId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CallDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CallDeviceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool CallDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CallDeviceResult::getMessageId()const
|
||||
{
|
||||
return messageId_;
|
||||
}
|
||||
|
||||
40
aliyuncvc/src/model/GetMembersRequest.cc
Normal file
40
aliyuncvc/src/model/GetMembersRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/GetMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::GetMembersRequest;
|
||||
|
||||
GetMembersRequest::GetMembersRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2020-03-30", "GetMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMembersRequest::~GetMembersRequest()
|
||||
{}
|
||||
|
||||
std::string GetMembersRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void GetMembersRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setBodyParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
99
aliyuncvc/src/model/GetMembersResult.cc
Normal file
99
aliyuncvc/src/model/GetMembersResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/GetMembersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
GetMembersResult::GetMembersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMembersResult::GetMembersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMembersResult::~GetMembersResult()
|
||||
{}
|
||||
|
||||
void GetMembersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto meetingInfoNode = value["MeetingInfo"];
|
||||
if(!meetingInfoNode["MeetingName"].isNull())
|
||||
meetingInfo_.meetingName = meetingInfoNode["MeetingName"].asString();
|
||||
if(!meetingInfoNode["ValidTime"].isNull())
|
||||
meetingInfo_.validTime = std::stol(meetingInfoNode["ValidTime"].asString());
|
||||
if(!meetingInfoNode["MeetingCode"].isNull())
|
||||
meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString();
|
||||
if(!meetingInfoNode["CreateTime"].isNull())
|
||||
meetingInfo_.createTime = std::stol(meetingInfoNode["CreateTime"].asString());
|
||||
if(!meetingInfoNode["UserId"].isNull())
|
||||
meetingInfo_.userId = meetingInfoNode["UserId"].asString();
|
||||
if(!meetingInfoNode["MeetingUUID"].isNull())
|
||||
meetingInfo_.meetingUUID = meetingInfoNode["MeetingUUID"].asString();
|
||||
auto allMemberListNode = meetingInfoNode["MemberList"]["MemberListItem"];
|
||||
for (auto meetingInfoNodeMemberListMemberListItem : allMemberListNode)
|
||||
{
|
||||
MeetingInfo::MemberListItem memberListItemObject;
|
||||
if(!meetingInfoNodeMemberListMemberListItem["UserAvatarUrl"].isNull())
|
||||
memberListItemObject.userAvatarUrl = meetingInfoNodeMemberListMemberListItem["UserAvatarUrl"].asString();
|
||||
if(!meetingInfoNodeMemberListMemberListItem["MemberUUID"].isNull())
|
||||
memberListItemObject.memberUUID = meetingInfoNodeMemberListMemberListItem["MemberUUID"].asString();
|
||||
if(!meetingInfoNodeMemberListMemberListItem["UserName"].isNull())
|
||||
memberListItemObject.userName = meetingInfoNodeMemberListMemberListItem["UserName"].asString();
|
||||
if(!meetingInfoNodeMemberListMemberListItem["UserId"].isNull())
|
||||
memberListItemObject.userId = meetingInfoNodeMemberListMemberListItem["UserId"].asString();
|
||||
if(!meetingInfoNodeMemberListMemberListItem["Status"].isNull())
|
||||
memberListItemObject.status = meetingInfoNodeMemberListMemberListItem["Status"].asString();
|
||||
meetingInfo_.memberList.push_back(memberListItemObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
GetMembersResult::MeetingInfo GetMembersResult::getMeetingInfo()const
|
||||
{
|
||||
return meetingInfo_;
|
||||
}
|
||||
|
||||
std::string GetMembersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetMembersResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool GetMembersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
aliyuncvc/src/model/ListDevicesRequest.cc
Normal file
73
aliyuncvc/src/model/ListDevicesRequest.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/aliyuncvc/model/ListDevicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::ListDevicesRequest;
|
||||
|
||||
ListDevicesRequest::ListDevicesRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "ListDevices")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDevicesRequest::~ListDevicesRequest()
|
||||
{}
|
||||
|
||||
std::string ListDevicesRequest::getCastScreenCode()const
|
||||
{
|
||||
return castScreenCode_;
|
||||
}
|
||||
|
||||
void ListDevicesRequest::setCastScreenCode(const std::string& castScreenCode)
|
||||
{
|
||||
castScreenCode_ = castScreenCode;
|
||||
setParameter("CastScreenCode", castScreenCode);
|
||||
}
|
||||
|
||||
int ListDevicesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListDevicesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListDevicesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDevicesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListDevicesRequest::getSN()const
|
||||
{
|
||||
return sN_;
|
||||
}
|
||||
|
||||
void ListDevicesRequest::setSN(const std::string& sN)
|
||||
{
|
||||
sN_ = sN;
|
||||
setParameter("SN", sN);
|
||||
}
|
||||
|
||||
99
aliyuncvc/src/model/ListDevicesResult.cc
Normal file
99
aliyuncvc/src/model/ListDevicesResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/ListDevicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
ListDevicesResult::ListDevicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDevicesResult::ListDevicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDevicesResult::~ListDevicesResult()
|
||||
{}
|
||||
|
||||
void ListDevicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allDevicesNode = dataNode["Devices"]["Device"];
|
||||
for (auto dataNodeDevicesDevice : allDevicesNode)
|
||||
{
|
||||
Data::Device deviceObject;
|
||||
if(!dataNodeDevicesDevice["ActivationCode"].isNull())
|
||||
deviceObject.activationCode = dataNodeDevicesDevice["ActivationCode"].asString();
|
||||
if(!dataNodeDevicesDevice["ConferenceCode"].isNull())
|
||||
deviceObject.conferenceCode = dataNodeDevicesDevice["ConferenceCode"].asString();
|
||||
if(!dataNodeDevicesDevice["ConferenceName"].isNull())
|
||||
deviceObject.conferenceName = dataNodeDevicesDevice["ConferenceName"].asString();
|
||||
if(!dataNodeDevicesDevice["CreateTime"].isNull())
|
||||
deviceObject.createTime = dataNodeDevicesDevice["CreateTime"].asString();
|
||||
if(!dataNodeDevicesDevice["PictureUrl"].isNull())
|
||||
deviceObject.pictureUrl = dataNodeDevicesDevice["PictureUrl"].asString();
|
||||
if(!dataNodeDevicesDevice["SN"].isNull())
|
||||
deviceObject.sN = dataNodeDevicesDevice["SN"].asString();
|
||||
if(!dataNodeDevicesDevice["Status"].isNull())
|
||||
deviceObject.status = dataNodeDevicesDevice["Status"].asString();
|
||||
if(!dataNodeDevicesDevice["CastScreenCode"].isNull())
|
||||
deviceObject.castScreenCode = dataNodeDevicesDevice["CastScreenCode"].asString();
|
||||
data_.devices.push_back(deviceObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListDevicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListDevicesResult::Data ListDevicesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListDevicesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ListDevicesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
aliyuncvc/src/model/UpdateGonggeLayoutRequest.cc
Normal file
62
aliyuncvc/src/model/UpdateGonggeLayoutRequest.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/aliyuncvc/model/UpdateGonggeLayoutRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::UpdateGonggeLayoutRequest;
|
||||
|
||||
UpdateGonggeLayoutRequest::UpdateGonggeLayoutRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "UpdateGonggeLayout")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateGonggeLayoutRequest::~UpdateGonggeLayoutRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateGonggeLayoutRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void UpdateGonggeLayoutRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setBodyParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
std::string UpdateGonggeLayoutRequest::getVideoCount()const
|
||||
{
|
||||
return videoCount_;
|
||||
}
|
||||
|
||||
void UpdateGonggeLayoutRequest::setVideoCount(const std::string& videoCount)
|
||||
{
|
||||
videoCount_ = videoCount;
|
||||
setBodyParameter("VideoCount", videoCount);
|
||||
}
|
||||
|
||||
std::string UpdateGonggeLayoutRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void UpdateGonggeLayoutRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setBodyParameter("Value", value);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/UpdateGonggeLayoutResult.cc
Normal file
65
aliyuncvc/src/model/UpdateGonggeLayoutResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/UpdateGonggeLayoutResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
UpdateGonggeLayoutResult::UpdateGonggeLayoutResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateGonggeLayoutResult::UpdateGonggeLayoutResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateGonggeLayoutResult::~UpdateGonggeLayoutResult()
|
||||
{}
|
||||
|
||||
void UpdateGonggeLayoutResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateGonggeLayoutResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateGonggeLayoutResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool UpdateGonggeLayoutResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -43,12 +43,22 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DeleteAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
||||
include/alibabacloud/arms/model/DeleteTraceAppRequest.h
|
||||
include/alibabacloud/arms/model/DeleteTraceAppResult.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLicenseKeyRequest.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLicenseKeyResult.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLocationRequest.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLocationResult.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotResult.h
|
||||
include/alibabacloud/arms/model/GetMultipleTraceRequest.h
|
||||
include/alibabacloud/arms/model/GetMultipleTraceResult.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenRequest.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenResult.h
|
||||
include/alibabacloud/arms/model/GetRetcodeShareUrlRequest.h
|
||||
include/alibabacloud/arms/model/GetRetcodeShareUrlResult.h
|
||||
include/alibabacloud/arms/model/GetStackRequest.h
|
||||
include/alibabacloud/arms/model/GetStackResult.h
|
||||
include/alibabacloud/arms/model/GetTraceRequest.h
|
||||
include/alibabacloud/arms/model/GetTraceResult.h
|
||||
include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h
|
||||
@@ -87,6 +97,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/SearchTraceAppByPageResult.h
|
||||
include/alibabacloud/arms/model/SearchTracesRequest.h
|
||||
include/alibabacloud/arms/model/SearchTracesResult.h
|
||||
include/alibabacloud/arms/model/SearchTracesByPageRequest.h
|
||||
include/alibabacloud/arms/model/SearchTracesByPageResult.h
|
||||
include/alibabacloud/arms/model/SetRetcodeShareStatusRequest.h
|
||||
include/alibabacloud/arms/model/SetRetcodeShareStatusResult.h
|
||||
include/alibabacloud/arms/model/StartAlertRequest.h
|
||||
@@ -124,12 +136,22 @@ set(arms_src
|
||||
src/model/DeleteAlertRulesResult.cc
|
||||
src/model/DeleteRetcodeAppRequest.cc
|
||||
src/model/DeleteRetcodeAppResult.cc
|
||||
src/model/DeleteTraceAppRequest.cc
|
||||
src/model/DeleteTraceAppResult.cc
|
||||
src/model/DescribeTraceLicenseKeyRequest.cc
|
||||
src/model/DescribeTraceLicenseKeyResult.cc
|
||||
src/model/DescribeTraceLocationRequest.cc
|
||||
src/model/DescribeTraceLocationResult.cc
|
||||
src/model/GetConsistencySnapshotRequest.cc
|
||||
src/model/GetConsistencySnapshotResult.cc
|
||||
src/model/GetMultipleTraceRequest.cc
|
||||
src/model/GetMultipleTraceResult.cc
|
||||
src/model/GetPrometheusApiTokenRequest.cc
|
||||
src/model/GetPrometheusApiTokenResult.cc
|
||||
src/model/GetRetcodeShareUrlRequest.cc
|
||||
src/model/GetRetcodeShareUrlResult.cc
|
||||
src/model/GetStackRequest.cc
|
||||
src/model/GetStackResult.cc
|
||||
src/model/GetTraceRequest.cc
|
||||
src/model/GetTraceResult.cc
|
||||
src/model/ImportAppAlertRulesRequest.cc
|
||||
@@ -168,6 +190,8 @@ set(arms_src
|
||||
src/model/SearchTraceAppByPageResult.cc
|
||||
src/model/SearchTracesRequest.cc
|
||||
src/model/SearchTracesResult.cc
|
||||
src/model/SearchTracesByPageRequest.cc
|
||||
src/model/SearchTracesByPageResult.cc
|
||||
src/model/SetRetcodeShareStatusRequest.cc
|
||||
src/model/SetRetcodeShareStatusResult.cc
|
||||
src/model/StartAlertRequest.cc
|
||||
|
||||
@@ -44,12 +44,22 @@
|
||||
#include "model/DeleteAlertRulesResult.h"
|
||||
#include "model/DeleteRetcodeAppRequest.h"
|
||||
#include "model/DeleteRetcodeAppResult.h"
|
||||
#include "model/DeleteTraceAppRequest.h"
|
||||
#include "model/DeleteTraceAppResult.h"
|
||||
#include "model/DescribeTraceLicenseKeyRequest.h"
|
||||
#include "model/DescribeTraceLicenseKeyResult.h"
|
||||
#include "model/DescribeTraceLocationRequest.h"
|
||||
#include "model/DescribeTraceLocationResult.h"
|
||||
#include "model/GetConsistencySnapshotRequest.h"
|
||||
#include "model/GetConsistencySnapshotResult.h"
|
||||
#include "model/GetMultipleTraceRequest.h"
|
||||
#include "model/GetMultipleTraceResult.h"
|
||||
#include "model/GetPrometheusApiTokenRequest.h"
|
||||
#include "model/GetPrometheusApiTokenResult.h"
|
||||
#include "model/GetRetcodeShareUrlRequest.h"
|
||||
#include "model/GetRetcodeShareUrlResult.h"
|
||||
#include "model/GetStackRequest.h"
|
||||
#include "model/GetStackResult.h"
|
||||
#include "model/GetTraceRequest.h"
|
||||
#include "model/GetTraceResult.h"
|
||||
#include "model/ImportAppAlertRulesRequest.h"
|
||||
@@ -88,6 +98,8 @@
|
||||
#include "model/SearchTraceAppByPageResult.h"
|
||||
#include "model/SearchTracesRequest.h"
|
||||
#include "model/SearchTracesResult.h"
|
||||
#include "model/SearchTracesByPageRequest.h"
|
||||
#include "model/SearchTracesByPageResult.h"
|
||||
#include "model/SetRetcodeShareStatusRequest.h"
|
||||
#include "model/SetRetcodeShareStatusResult.h"
|
||||
#include "model/StartAlertRequest.h"
|
||||
@@ -142,15 +154,30 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteRetcodeAppResult> DeleteRetcodeAppOutcome;
|
||||
typedef std::future<DeleteRetcodeAppOutcome> DeleteRetcodeAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteRetcodeAppRequest&, const DeleteRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRetcodeAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTraceAppResult> DeleteTraceAppOutcome;
|
||||
typedef std::future<DeleteTraceAppOutcome> DeleteTraceAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteTraceAppRequest&, const DeleteTraceAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTraceAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTraceLicenseKeyResult> DescribeTraceLicenseKeyOutcome;
|
||||
typedef std::future<DescribeTraceLicenseKeyOutcome> DescribeTraceLicenseKeyOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DescribeTraceLicenseKeyRequest&, const DescribeTraceLicenseKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTraceLicenseKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTraceLocationResult> DescribeTraceLocationOutcome;
|
||||
typedef std::future<DescribeTraceLocationOutcome> DescribeTraceLocationOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DescribeTraceLocationRequest&, const DescribeTraceLocationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTraceLocationAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConsistencySnapshotResult> GetConsistencySnapshotOutcome;
|
||||
typedef std::future<GetConsistencySnapshotOutcome> GetConsistencySnapshotOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetConsistencySnapshotRequest&, const GetConsistencySnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsistencySnapshotAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMultipleTraceResult> GetMultipleTraceOutcome;
|
||||
typedef std::future<GetMultipleTraceOutcome> GetMultipleTraceOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetMultipleTraceRequest&, const GetMultipleTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMultipleTraceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPrometheusApiTokenResult> GetPrometheusApiTokenOutcome;
|
||||
typedef std::future<GetPrometheusApiTokenOutcome> GetPrometheusApiTokenOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetPrometheusApiTokenRequest&, const GetPrometheusApiTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPrometheusApiTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRetcodeShareUrlResult> GetRetcodeShareUrlOutcome;
|
||||
typedef std::future<GetRetcodeShareUrlOutcome> GetRetcodeShareUrlOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetRetcodeShareUrlRequest&, const GetRetcodeShareUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRetcodeShareUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetStackResult> GetStackOutcome;
|
||||
typedef std::future<GetStackOutcome> GetStackOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetStackRequest&, const GetStackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetStackAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTraceResult> GetTraceOutcome;
|
||||
typedef std::future<GetTraceOutcome> GetTraceOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetTraceRequest&, const GetTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTraceAsyncHandler;
|
||||
@@ -208,6 +235,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SearchTracesResult> SearchTracesOutcome;
|
||||
typedef std::future<SearchTracesOutcome> SearchTracesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchTracesRequest&, const SearchTracesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTracesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchTracesByPageResult> SearchTracesByPageOutcome;
|
||||
typedef std::future<SearchTracesByPageOutcome> SearchTracesByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchTracesByPageRequest&, const SearchTracesByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTracesByPageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetRetcodeShareStatusResult> SetRetcodeShareStatusOutcome;
|
||||
typedef std::future<SetRetcodeShareStatusOutcome> SetRetcodeShareStatusOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SetRetcodeShareStatusRequest&, const SetRetcodeShareStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRetcodeShareStatusAsyncHandler;
|
||||
@@ -264,15 +294,30 @@ namespace AlibabaCloud
|
||||
DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const;
|
||||
void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRetcodeAppOutcomeCallable deleteRetcodeAppCallable(const Model::DeleteRetcodeAppRequest& request) const;
|
||||
DeleteTraceAppOutcome deleteTraceApp(const Model::DeleteTraceAppRequest &request)const;
|
||||
void deleteTraceAppAsync(const Model::DeleteTraceAppRequest& request, const DeleteTraceAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTraceAppOutcomeCallable deleteTraceAppCallable(const Model::DeleteTraceAppRequest& request) const;
|
||||
DescribeTraceLicenseKeyOutcome describeTraceLicenseKey(const Model::DescribeTraceLicenseKeyRequest &request)const;
|
||||
void describeTraceLicenseKeyAsync(const Model::DescribeTraceLicenseKeyRequest& request, const DescribeTraceLicenseKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTraceLicenseKeyOutcomeCallable describeTraceLicenseKeyCallable(const Model::DescribeTraceLicenseKeyRequest& request) const;
|
||||
DescribeTraceLocationOutcome describeTraceLocation(const Model::DescribeTraceLocationRequest &request)const;
|
||||
void describeTraceLocationAsync(const Model::DescribeTraceLocationRequest& request, const DescribeTraceLocationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTraceLocationOutcomeCallable describeTraceLocationCallable(const Model::DescribeTraceLocationRequest& request) const;
|
||||
GetConsistencySnapshotOutcome getConsistencySnapshot(const Model::GetConsistencySnapshotRequest &request)const;
|
||||
void getConsistencySnapshotAsync(const Model::GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConsistencySnapshotOutcomeCallable getConsistencySnapshotCallable(const Model::GetConsistencySnapshotRequest& request) const;
|
||||
GetMultipleTraceOutcome getMultipleTrace(const Model::GetMultipleTraceRequest &request)const;
|
||||
void getMultipleTraceAsync(const Model::GetMultipleTraceRequest& request, const GetMultipleTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMultipleTraceOutcomeCallable getMultipleTraceCallable(const Model::GetMultipleTraceRequest& request) const;
|
||||
GetPrometheusApiTokenOutcome getPrometheusApiToken(const Model::GetPrometheusApiTokenRequest &request)const;
|
||||
void getPrometheusApiTokenAsync(const Model::GetPrometheusApiTokenRequest& request, const GetPrometheusApiTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPrometheusApiTokenOutcomeCallable getPrometheusApiTokenCallable(const Model::GetPrometheusApiTokenRequest& request) const;
|
||||
GetRetcodeShareUrlOutcome getRetcodeShareUrl(const Model::GetRetcodeShareUrlRequest &request)const;
|
||||
void getRetcodeShareUrlAsync(const Model::GetRetcodeShareUrlRequest& request, const GetRetcodeShareUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRetcodeShareUrlOutcomeCallable getRetcodeShareUrlCallable(const Model::GetRetcodeShareUrlRequest& request) const;
|
||||
GetStackOutcome getStack(const Model::GetStackRequest &request)const;
|
||||
void getStackAsync(const Model::GetStackRequest& request, const GetStackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetStackOutcomeCallable getStackCallable(const Model::GetStackRequest& request) const;
|
||||
GetTraceOutcome getTrace(const Model::GetTraceRequest &request)const;
|
||||
void getTraceAsync(const Model::GetTraceRequest& request, const GetTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTraceOutcomeCallable getTraceCallable(const Model::GetTraceRequest& request) const;
|
||||
@@ -330,6 +375,9 @@ namespace AlibabaCloud
|
||||
SearchTracesOutcome searchTraces(const Model::SearchTracesRequest &request)const;
|
||||
void searchTracesAsync(const Model::SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchTracesOutcomeCallable searchTracesCallable(const Model::SearchTracesRequest& request) const;
|
||||
SearchTracesByPageOutcome searchTracesByPage(const Model::SearchTracesByPageRequest &request)const;
|
||||
void searchTracesByPageAsync(const Model::SearchTracesByPageRequest& request, const SearchTracesByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchTracesByPageOutcomeCallable searchTracesByPageCallable(const Model::SearchTracesByPageRequest& request) const;
|
||||
SetRetcodeShareStatusOutcome setRetcodeShareStatus(const Model::SetRetcodeShareStatusRequest &request)const;
|
||||
void setRetcodeShareStatusAsync(const Model::SetRetcodeShareStatusRequest& request, const SetRetcodeShareStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetRetcodeShareStatusOutcomeCallable setRetcodeShareStatusCallable(const Model::SetRetcodeShareStatusRequest& request) const;
|
||||
|
||||
@@ -14,38 +14,41 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DELETETRACEAPPREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETETRACEAPPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetUserInfomationRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ARMS_EXPORT DeleteTraceAppRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetUserInfomationRequest();
|
||||
~GetUserInfomationRequest();
|
||||
DeleteTraceAppRequest();
|
||||
~DeleteTraceAppRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string parameters_;
|
||||
std::string regionId_;
|
||||
std::string appId_;
|
||||
std::string type_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETETRACEAPPREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WAF_OPENAPI_MODEL_CREATEIPBLOCKRESULT_H_
|
||||
#define ALIBABACLOUD_WAF_OPENAPI_MODEL_CREATEIPBLOCKRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DELETETRACEAPPRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETETRACEAPPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/waf-openapi/Waf_openapiExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Waf_openapi
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WAF_OPENAPI_EXPORT CreateIPBlockResult : public ServiceResult
|
||||
class ALIBABACLOUD_ARMS_EXPORT DeleteTraceAppResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateIPBlockResult();
|
||||
explicit CreateIPBlockResult(const std::string &payload);
|
||||
~CreateIPBlockResult();
|
||||
DeleteTraceAppResult();
|
||||
explicit DeleteTraceAppResult(const std::string &payload);
|
||||
~DeleteTraceAppResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
@@ -48,4 +48,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WAF_OPENAPI_MODEL_CREATEIPBLOCKRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETETRACEAPPRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELICENSEKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELICENSEKEYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT DescribeTraceLicenseKeyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeTraceLicenseKeyRequest();
|
||||
~DescribeTraceLicenseKeyRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELICENSEKEYREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELICENSEKEYRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELICENSEKEYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT DescribeTraceLicenseKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeTraceLicenseKeyResult();
|
||||
explicit DescribeTraceLicenseKeyResult(const std::string &payload);
|
||||
~DescribeTraceLicenseKeyResult();
|
||||
std::string getLicenseKey()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string licenseKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELICENSEKEYRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELOCATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELOCATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT DescribeTraceLocationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeTraceLocationRequest();
|
||||
~DescribeTraceLocationRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELOCATIONREQUEST_H_
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELOCATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELOCATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT DescribeTraceLocationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RegionConfig
|
||||
{
|
||||
std::string regionNo;
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
DescribeTraceLocationResult();
|
||||
explicit DescribeTraceLocationResult(const std::string &payload);
|
||||
~DescribeTraceLocationResult();
|
||||
std::vector<RegionConfig> getRegionConfigs()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<RegionConfig> regionConfigs_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DESCRIBETRACELOCATIONRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETMULTIPLETRACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETMULTIPLETRACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetMultipleTraceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMultipleTraceRequest();
|
||||
~GetMultipleTraceRequest();
|
||||
|
||||
std::vector<std::string> getTraceIDs()const;
|
||||
void setTraceIDs(const std::vector<std::string>& traceIDs);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::vector<std::string> traceIDs_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETMULTIPLETRACEREQUEST_H_
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETMULTIPLETRACERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETMULTIPLETRACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetMultipleTraceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MultiCallChainInfo
|
||||
{
|
||||
struct Span
|
||||
{
|
||||
struct TagEntry
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct LogEvent
|
||||
{
|
||||
struct TagEntry2
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<LogEvent::TagEntry2> tagEntryList1;
|
||||
long timestamp;
|
||||
};
|
||||
bool haveStack;
|
||||
std::string serviceIp;
|
||||
std::vector<Span::LogEvent> logEventList;
|
||||
std::string operationName;
|
||||
std::string serviceName;
|
||||
std::string rpcId;
|
||||
int rpcType;
|
||||
std::string traceID;
|
||||
long duration;
|
||||
std::vector<Span::TagEntry> tagEntryList;
|
||||
long timestamp;
|
||||
std::string resultCode;
|
||||
};
|
||||
std::string traceID;
|
||||
std::vector<MultiCallChainInfo::Span> spans;
|
||||
};
|
||||
|
||||
|
||||
GetMultipleTraceResult();
|
||||
explicit GetMultipleTraceResult(const std::string &payload);
|
||||
~GetMultipleTraceResult();
|
||||
std::vector<MultiCallChainInfo> getMultiCallChainInfos()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<MultiCallChainInfo> multiCallChainInfos_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETMULTIPLETRACERESULT_H_
|
||||
54
arms/include/alibabacloud/arms/model/GetStackRequest.h
Normal file
54
arms/include/alibabacloud/arms/model/GetStackRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETSTACKREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETSTACKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetStackRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetStackRequest();
|
||||
~GetStackRequest();
|
||||
|
||||
std::string getTraceID()const;
|
||||
void setTraceID(const std::string& traceID);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getRpcID()const;
|
||||
void setRpcID(const std::string& rpcID);
|
||||
|
||||
private:
|
||||
std::string traceID_;
|
||||
std::string regionId_;
|
||||
std::string rpcID_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETSTACKREQUEST_H_
|
||||
67
arms/include/alibabacloud/arms/model/GetStackResult.h
Normal file
67
arms/include/alibabacloud/arms/model/GetStackResult.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETSTACKRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETSTACKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetStackResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct StackInfoItem
|
||||
{
|
||||
struct ExtInfoItem
|
||||
{
|
||||
std::string type;
|
||||
std::string info;
|
||||
};
|
||||
std::string line;
|
||||
std::string serviceName;
|
||||
std::vector<StackInfoItem::ExtInfoItem> extInfo;
|
||||
std::string rpcId;
|
||||
long startTime;
|
||||
long duration;
|
||||
std::string api;
|
||||
std::string exception;
|
||||
};
|
||||
|
||||
|
||||
GetStackResult();
|
||||
explicit GetStackResult(const std::string &payload);
|
||||
~GetStackResult();
|
||||
std::vector<StackInfoItem> getStackInfo()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<StackInfoItem> stackInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETSTACKRESULT_H_
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ARMS_MODEL_SEARCHTRACESBYPAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESBYPAGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SearchTracesByPageRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct ExclusionFilters
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
SearchTracesByPageRequest();
|
||||
~SearchTracesByPageRequest();
|
||||
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
bool getReverse()const;
|
||||
void setReverse(bool reverse);
|
||||
long getMinDuration()const;
|
||||
void setMinDuration(long minDuration);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getServiceIp()const;
|
||||
void setServiceIp(const std::string& serviceIp);
|
||||
std::vector<ExclusionFilters> getExclusionFilters()const;
|
||||
void setExclusionFilters(const std::vector<ExclusionFilters>& exclusionFilters);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOperationName()const;
|
||||
void setOperationName(const std::string& operationName);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
|
||||
private:
|
||||
long endTime_;
|
||||
long startTime_;
|
||||
bool reverse_;
|
||||
long minDuration_;
|
||||
int pageNumber_;
|
||||
std::string serviceIp_;
|
||||
std::vector<ExclusionFilters> exclusionFilters_;
|
||||
std::string regionId_;
|
||||
std::string operationName_;
|
||||
int pageSize_;
|
||||
std::string serviceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESBYPAGEREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESBYPAGERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESBYPAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SearchTracesByPageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageBean
|
||||
{
|
||||
struct TraceInfo
|
||||
{
|
||||
std::string serviceIp;
|
||||
std::string operationName;
|
||||
std::string serviceName;
|
||||
std::string traceID;
|
||||
long duration;
|
||||
long timestamp;
|
||||
};
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
int total;
|
||||
std::vector<TraceInfo> traceInfos;
|
||||
};
|
||||
|
||||
|
||||
SearchTracesByPageResult();
|
||||
explicit SearchTracesByPageResult(const std::string &payload);
|
||||
~SearchTracesByPageResult();
|
||||
PageBean getPageBean()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PageBean pageBean_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESBYPAGERESULT_H_
|
||||
@@ -447,6 +447,114 @@ ARMSClient::DeleteRetcodeAppOutcomeCallable ARMSClient::deleteRetcodeAppCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteTraceAppOutcome ARMSClient::deleteTraceApp(const DeleteTraceAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteTraceAppOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteTraceAppOutcome(DeleteTraceAppResult(outcome.result()));
|
||||
else
|
||||
return DeleteTraceAppOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::deleteTraceAppAsync(const DeleteTraceAppRequest& request, const DeleteTraceAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteTraceApp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DeleteTraceAppOutcomeCallable ARMSClient::deleteTraceAppCallable(const DeleteTraceAppRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteTraceAppOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteTraceApp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DescribeTraceLicenseKeyOutcome ARMSClient::describeTraceLicenseKey(const DescribeTraceLicenseKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTraceLicenseKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeTraceLicenseKeyOutcome(DescribeTraceLicenseKeyResult(outcome.result()));
|
||||
else
|
||||
return DescribeTraceLicenseKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::describeTraceLicenseKeyAsync(const DescribeTraceLicenseKeyRequest& request, const DescribeTraceLicenseKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeTraceLicenseKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DescribeTraceLicenseKeyOutcomeCallable ARMSClient::describeTraceLicenseKeyCallable(const DescribeTraceLicenseKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeTraceLicenseKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeTraceLicenseKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DescribeTraceLocationOutcome ARMSClient::describeTraceLocation(const DescribeTraceLocationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTraceLocationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeTraceLocationOutcome(DescribeTraceLocationResult(outcome.result()));
|
||||
else
|
||||
return DescribeTraceLocationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::describeTraceLocationAsync(const DescribeTraceLocationRequest& request, const DescribeTraceLocationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeTraceLocation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DescribeTraceLocationOutcomeCallable ARMSClient::describeTraceLocationCallable(const DescribeTraceLocationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeTraceLocationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeTraceLocation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetConsistencySnapshotOutcome ARMSClient::getConsistencySnapshot(const GetConsistencySnapshotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,6 +591,42 @@ ARMSClient::GetConsistencySnapshotOutcomeCallable ARMSClient::getConsistencySnap
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetMultipleTraceOutcome ARMSClient::getMultipleTrace(const GetMultipleTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMultipleTraceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMultipleTraceOutcome(GetMultipleTraceResult(outcome.result()));
|
||||
else
|
||||
return GetMultipleTraceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getMultipleTraceAsync(const GetMultipleTraceRequest& request, const GetMultipleTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMultipleTrace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetMultipleTraceOutcomeCallable ARMSClient::getMultipleTraceCallable(const GetMultipleTraceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMultipleTraceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMultipleTrace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetPrometheusApiTokenOutcome ARMSClient::getPrometheusApiToken(const GetPrometheusApiTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,6 +699,42 @@ ARMSClient::GetRetcodeShareUrlOutcomeCallable ARMSClient::getRetcodeShareUrlCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetStackOutcome ARMSClient::getStack(const GetStackRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStackOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetStackOutcome(GetStackResult(outcome.result()));
|
||||
else
|
||||
return GetStackOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getStackAsync(const GetStackRequest& request, const GetStackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getStack(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetStackOutcomeCallable ARMSClient::getStackCallable(const GetStackRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetStackOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getStack(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetTraceOutcome ARMSClient::getTrace(const GetTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1419,42 @@ ARMSClient::SearchTracesOutcomeCallable ARMSClient::searchTracesCallable(const S
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchTracesByPageOutcome ARMSClient::searchTracesByPage(const SearchTracesByPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchTracesByPageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchTracesByPageOutcome(SearchTracesByPageResult(outcome.result()));
|
||||
else
|
||||
return SearchTracesByPageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::searchTracesByPageAsync(const SearchTracesByPageRequest& request, const SearchTracesByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchTracesByPage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SearchTracesByPageOutcomeCallable ARMSClient::searchTracesByPageCallable(const SearchTracesByPageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchTracesByPageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchTracesByPage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SetRetcodeShareStatusOutcome ARMSClient::setRetcodeShareStatus(const SetRetcodeShareStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
62
arms/src/model/DeleteTraceAppRequest.cc
Normal file
62
arms/src/model/DeleteTraceAppRequest.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/arms/model/DeleteTraceAppRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteTraceAppRequest;
|
||||
|
||||
DeleteTraceAppRequest::DeleteTraceAppRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteTraceApp")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTraceAppRequest::~DeleteTraceAppRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTraceAppRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTraceAppRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteTraceAppRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteTraceAppRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DeleteTraceAppRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeleteTraceAppRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteTraceAppResult.cc
Normal file
51
arms/src/model/DeleteTraceAppResult.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/arms/model/DeleteTraceAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteTraceAppResult::DeleteTraceAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTraceAppResult::DeleteTraceAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTraceAppResult::~DeleteTraceAppResult()
|
||||
{}
|
||||
|
||||
void DeleteTraceAppResult::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 DeleteTraceAppResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -14,28 +14,27 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/ServiceMeshApiServerRequest.h>
|
||||
#include <alibabacloud/arms/model/DescribeTraceLicenseKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::ServiceMeshApiServerRequest;
|
||||
using AlibabaCloud::ARMS::Model::DescribeTraceLicenseKeyRequest;
|
||||
|
||||
ServiceMeshApiServerRequest::ServiceMeshApiServerRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
DescribeTraceLicenseKeyRequest::DescribeTraceLicenseKeyRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DescribeTraceLicenseKey")
|
||||
{
|
||||
setResourcePath("/servicemesh/[ServiceMeshId]/api_proxy");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ServiceMeshApiServerRequest::~ServiceMeshApiServerRequest()
|
||||
DescribeTraceLicenseKeyRequest::~DescribeTraceLicenseKeyRequest()
|
||||
{}
|
||||
|
||||
std::string ServiceMeshApiServerRequest::getServiceMeshId()const
|
||||
std::string DescribeTraceLicenseKeyRequest::getRegionId()const
|
||||
{
|
||||
return serviceMeshId_;
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ServiceMeshApiServerRequest::setServiceMeshId(const std::string& serviceMeshId)
|
||||
void DescribeTraceLicenseKeyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
serviceMeshId_ = serviceMeshId;
|
||||
setParameter("ServiceMeshId", serviceMeshId);
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/waf-openapi/model/DescribeDomainStatusResult.h>
|
||||
#include <alibabacloud/arms/model/DescribeTraceLicenseKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Waf_openapi;
|
||||
using namespace AlibabaCloud::Waf_openapi::Model;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DescribeDomainStatusResult::DescribeDomainStatusResult() :
|
||||
DescribeTraceLicenseKeyResult::DescribeTraceLicenseKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainStatusResult::DescribeDomainStatusResult(const std::string &payload) :
|
||||
DescribeTraceLicenseKeyResult::DescribeTraceLicenseKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainStatusResult::~DescribeDomainStatusResult()
|
||||
DescribeTraceLicenseKeyResult::~DescribeTraceLicenseKeyResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainStatusResult::parse(const std::string &payload)
|
||||
void DescribeTraceLicenseKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ConfigStatus"].isNull())
|
||||
configStatus_ = value["ConfigStatus"].asString();
|
||||
if(!value["LicenseKey"].isNull())
|
||||
licenseKey_ = value["LicenseKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainStatusResult::getConfigStatus()const
|
||||
std::string DescribeTraceLicenseKeyResult::getLicenseKey()const
|
||||
{
|
||||
return configStatus_;
|
||||
return licenseKey_;
|
||||
}
|
||||
|
||||
40
arms/src/model/DescribeTraceLocationRequest.cc
Normal file
40
arms/src/model/DescribeTraceLocationRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DescribeTraceLocationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DescribeTraceLocationRequest;
|
||||
|
||||
DescribeTraceLocationRequest::DescribeTraceLocationRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DescribeTraceLocation")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTraceLocationRequest::~DescribeTraceLocationRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTraceLocationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTraceLocationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
arms/src/model/DescribeTraceLocationResult.cc
Normal file
59
arms/src/model/DescribeTraceLocationResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DescribeTraceLocationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DescribeTraceLocationResult::DescribeTraceLocationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTraceLocationResult::DescribeTraceLocationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTraceLocationResult::~DescribeTraceLocationResult()
|
||||
{}
|
||||
|
||||
void DescribeTraceLocationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionConfigsNode = value["RegionConfigs"]["RegionConfig"];
|
||||
for (auto valueRegionConfigsRegionConfig : allRegionConfigsNode)
|
||||
{
|
||||
RegionConfig regionConfigsObject;
|
||||
if(!valueRegionConfigsRegionConfig["RegionNo"].isNull())
|
||||
regionConfigsObject.regionNo = valueRegionConfigsRegionConfig["RegionNo"].asString();
|
||||
if(!valueRegionConfigsRegionConfig["Url"].isNull())
|
||||
regionConfigsObject.url = valueRegionConfigsRegionConfig["Url"].asString();
|
||||
regionConfigs_.push_back(regionConfigsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeTraceLocationResult::RegionConfig> DescribeTraceLocationResult::getRegionConfigs()const
|
||||
{
|
||||
return regionConfigs_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user