Compare commits

..

60 Commits

Author SHA1 Message Date
sdk-team
458e22b006 ListOrderConsumeStatisticRecords add applicationExternalId serviceCode. 2024-06-06 03:00:53 +00:00
sdk-team
a375fa9d99 Support dms dg. 2024-06-05 06:32:50 +00:00
sdk-team
c8d90808f0 Update to support new apis. 2024-06-04 02:36:19 +00:00
sdk-team
886cef155f Supported gateway for hdeni api. 2024-06-03 07:01:54 +00:00
sdk-team
051077c805 Generated 2014-05-15 for Slb. 2024-05-30 12:41:59 +00:00
sdk-team
589d7c0177 Generated 2020-06-06 for cams. 2024-05-30 10:35:46 +00:00
sdk-team
22313c7d61 Update QueryFaceVideoTemplate. 2024-05-30 09:56:01 +00:00
sdk-team
192ded93b1 Support body 2024-05-29 02:38:54 +00:00
sdk-team
dde68d8a28 Generated 2019-09-01 for OceanBasePro. 2024-05-27 13:56:57 +00:00
sdk-team
b299d10992 Generated 2019-09-01 for OceanBasePro. 2024-05-27 10:41:59 +00:00
sdk-team
5c871c6dcd Generated 2015-12-01 for Dds. 2024-05-24 09:22:56 +00:00
sdk-team
3312e299ac Update to support new apis. 2024-05-24 02:47:35 +00:00
sdk-team
60bb031e74 Add SnapshotLinkId for DescribeSnapshots. 2024-05-23 06:10:07 +00:00
sdk-team
d74432d350 Generated 2019-09-01 for OceanBasePro. 2024-05-23 03:04:29 +00:00
sdk-team
7ddae594ab Generated 2020-06-01 for SWAS-OPEN. 2024-05-22 09:36:37 +00:00
sdk-team
3a727a7cb8 Support Spot Instance. 2024-05-22 07:55:38 +00:00
sdk-team
c0327a8b18 Add CreateTicket4Copilot API. 2024-05-22 05:42:21 +00:00
sdk-team
283dc6d360 DescribeDBInstances, add cpuType. 2024-05-22 03:33:56 +00:00
sdk-team
212db1e32d Support ExecutorId for CreateJob and ListJobExecutors. 2024-05-14 09:22:23 +00:00
sdk-team
d733a6db40 Upgrade SDK. 2024-05-14 06:57:25 +00:00
sdk-team
3177214fec Update to support new apis. 2024-05-11 03:05:50 +00:00
sdk-team
805659acd5 Support key policy and secret policy OpenAPI. 2024-05-08 08:07:31 +00:00
sdk-team
0b54cf98a5 -Fixed DescribeVodMediaPlayData接口返回数据类型错误 2024-05-08 03:52:37 +00:00
sdk-team
cbe97f842a Update HDENI and LENI API. 2024-05-06 08:43:09 +00:00
sdk-team
ac7c0da065 Generated 2014-08-15 for Rds. 2024-04-30 15:15:53 +00:00
sdk-team
b7792b239d Generated 2018-01-15 for dcdn. 2024-04-30 07:05:25 +00:00
sdk-team
e6bf769f7c Update to support new apis. 2024-04-29 07:59:58 +00:00
sdk-team
a869263856 Add SupportedBootModes for DescribeInstanceTypes. 2024-04-26 08:40:03 +00:00
sdk-team
863030766c Generated 2017-03-21 for vod. 2024-04-25 08:45:30 +00:00
sdk-team
7a6b431ace E-HPC Instant Computing Service Release, supporting mirroring and job management. 2024-04-25 02:03:07 +00:00
sdk-team
c70caca128 Generated 2021-06-01 for ComputeNest. 2024-04-23 09:15:23 +00:00
sdk-team
09d6015e09 Update DetectFace. 2024-04-22 09:37:05 +00:00
sdk-team
39478f1c33 Generated 2019-05-06 for sae. 2024-04-22 07:42:55 +00:00
sdk-team
e95083301e Support Container for CreateJob. 2024-04-16 03:38:31 +00:00
sdk-team
e98b3a0c80 Generated 2023-01-20 for csas. 2024-04-15 03:00:44 +00:00
sdk-team
6950861a84 Generated 2020-06-06 for cams. 2024-04-11 01:18:21 +00:00
sdk-team
92ffb966bd Generated 2024-03-25 for aps. 2024-04-03 08:51:31 +00:00
sdk-team
179726e2c2 Supported use group by freedom 2024-04-03 08:43:55 +00:00
sdk-team
0683d0188a Generated 2019-03-07 for Cloudauth. 2024-04-03 06:07:20 +00:00
sdk-team
2034a7ce61 Generated 2013-02-21 for Slb. 2024-04-01 02:32:39 +00:00
sdk-team
46f59d340b Add min_access_level and organization_alis fields. 2024-03-28 09:05:03 +00:00
sdk-team
fc0ca83c5e DeleteFlow、DeleteSchedule Parameters move to body. 2024-03-26 13:26:08 +00:00
sdk-team
046fa0c8a7 Supported ECR Attachment. 2024-03-26 02:13:11 +00:00
sdk-team
6e394508b1 update api 2024-03-25 15:14:34 +00:00
sdk-team
2cf2c1a693 Generated 2019-09-01 for OceanBasePro. 2024-03-25 12:44:47 +00:00
sdk-team
2655b67ecf Fix API 2024-03-25 08:01:50 +00:00
sdk-team
811dc06c78 Add Region in host. 2024-03-21 06:48:50 +00:00
sdk-team
062ac6c53a Add QueryWorkspaceRoleConfig, ListWorkspaceRoleUsers, ListWorkspaceRoles, QueryOrganizationRoleConfig, ListOrganizationRoleUsers and ListOrganizationRoles APIs. 2024-03-19 02:50:34 +00:00
sdk-team
c5710477dc Fixed bugs for PauseEventStreaming and DeleteEventStreaming 2024-03-14 07:33:22 +00:00
sdk-team
4970164a9f Generated 2020-06-01 for SWAS-OPEN. 2024-03-13 12:11:51 +00:00
sdk-team
ae139aef77 Update QueryFaceImageTemplate. 2024-03-13 07:27:14 +00:00
sdk-team
06af2542bd Update QueryFaceVideoTemplate. 2024-03-13 06:56:09 +00:00
sdk-team
150f012d41 Update to support new apis. 2024-03-13 02:13:13 +00:00
sdk-team
b618f90905 Support CreateInstance API. 2024-03-08 03:25:51 +00:00
sdk-team
005a84c9f4 Generated 2015-12-01 for Dds. 2024-03-08 02:07:28 +00:00
sdk-team
5df7719b65 Update to support new apis. 2024-03-06 18:03:06 +00:00
sdk-team
419d2ef5e8 Support UserData parameter for ApplyNodes interface. 2024-03-05 07:33:35 +00:00
sdk-team
04d98c2083 Update to support new apis. 2024-03-01 07:53:25 +00:00
sdk-team
b3b1f59165 Generated 2019-01-03 for Sddp. 2024-02-29 09:38:40 +00:00
sdk-team
1308f2904e Fixed bugs for ListUserDefinedEventSources 2024-02-28 01:58:56 +00:00
5147 changed files with 240134 additions and 101468 deletions

View File

@@ -1 +1 @@
1.36.1865
1.36.1925

View File

@@ -51,6 +51,10 @@ set(alikafka_public_header_model
include/alibabacloud/alikafka/model/DescribeAclsResult.h
include/alibabacloud/alikafka/model/DescribeSaslUsersRequest.h
include/alibabacloud/alikafka/model/DescribeSaslUsersResult.h
include/alibabacloud/alikafka/model/EnableAutoGroupCreationRequest.h
include/alibabacloud/alikafka/model/EnableAutoGroupCreationResult.h
include/alibabacloud/alikafka/model/EnableAutoTopicCreationRequest.h
include/alibabacloud/alikafka/model/EnableAutoTopicCreationResult.h
include/alibabacloud/alikafka/model/GetAllInstanceIdListRequest.h
include/alibabacloud/alikafka/model/GetAllInstanceIdListResult.h
include/alibabacloud/alikafka/model/GetAllowedIpListRequest.h
@@ -67,6 +71,8 @@ set(alikafka_public_header_model
include/alibabacloud/alikafka/model/GetTopicListResult.h
include/alibabacloud/alikafka/model/GetTopicStatusRequest.h
include/alibabacloud/alikafka/model/GetTopicStatusResult.h
include/alibabacloud/alikafka/model/GetTopicSubscribeStatusRequest.h
include/alibabacloud/alikafka/model/GetTopicSubscribeStatusResult.h
include/alibabacloud/alikafka/model/ListTagResourcesRequest.h
include/alibabacloud/alikafka/model/ListTagResourcesResult.h
include/alibabacloud/alikafka/model/ModifyInstanceNameRequest.h
@@ -75,10 +81,16 @@ set(alikafka_public_header_model
include/alibabacloud/alikafka/model/ModifyPartitionNumResult.h
include/alibabacloud/alikafka/model/ModifyTopicRemarkRequest.h
include/alibabacloud/alikafka/model/ModifyTopicRemarkResult.h
include/alibabacloud/alikafka/model/QueryMessageRequest.h
include/alibabacloud/alikafka/model/QueryMessageResult.h
include/alibabacloud/alikafka/model/ReleaseInstanceRequest.h
include/alibabacloud/alikafka/model/ReleaseInstanceResult.h
include/alibabacloud/alikafka/model/ReopenInstanceRequest.h
include/alibabacloud/alikafka/model/ReopenInstanceResult.h
include/alibabacloud/alikafka/model/StartInstanceRequest.h
include/alibabacloud/alikafka/model/StartInstanceResult.h
include/alibabacloud/alikafka/model/StopInstanceRequest.h
include/alibabacloud/alikafka/model/StopInstanceResult.h
include/alibabacloud/alikafka/model/TagResourcesRequest.h
include/alibabacloud/alikafka/model/TagResourcesResult.h
include/alibabacloud/alikafka/model/UntagResourcesRequest.h
@@ -89,6 +101,8 @@ set(alikafka_public_header_model
include/alibabacloud/alikafka/model/UpdateConsumerOffsetResult.h
include/alibabacloud/alikafka/model/UpdateInstanceConfigRequest.h
include/alibabacloud/alikafka/model/UpdateInstanceConfigResult.h
include/alibabacloud/alikafka/model/UpdateTopicConfigRequest.h
include/alibabacloud/alikafka/model/UpdateTopicConfigResult.h
include/alibabacloud/alikafka/model/UpgradeInstanceVersionRequest.h
include/alibabacloud/alikafka/model/UpgradeInstanceVersionResult.h
include/alibabacloud/alikafka/model/UpgradePostPayOrderRequest.h
@@ -128,6 +142,10 @@ set(alikafka_src
src/model/DescribeAclsResult.cc
src/model/DescribeSaslUsersRequest.cc
src/model/DescribeSaslUsersResult.cc
src/model/EnableAutoGroupCreationRequest.cc
src/model/EnableAutoGroupCreationResult.cc
src/model/EnableAutoTopicCreationRequest.cc
src/model/EnableAutoTopicCreationResult.cc
src/model/GetAllInstanceIdListRequest.cc
src/model/GetAllInstanceIdListResult.cc
src/model/GetAllowedIpListRequest.cc
@@ -144,6 +162,8 @@ set(alikafka_src
src/model/GetTopicListResult.cc
src/model/GetTopicStatusRequest.cc
src/model/GetTopicStatusResult.cc
src/model/GetTopicSubscribeStatusRequest.cc
src/model/GetTopicSubscribeStatusResult.cc
src/model/ListTagResourcesRequest.cc
src/model/ListTagResourcesResult.cc
src/model/ModifyInstanceNameRequest.cc
@@ -152,10 +172,16 @@ set(alikafka_src
src/model/ModifyPartitionNumResult.cc
src/model/ModifyTopicRemarkRequest.cc
src/model/ModifyTopicRemarkResult.cc
src/model/QueryMessageRequest.cc
src/model/QueryMessageResult.cc
src/model/ReleaseInstanceRequest.cc
src/model/ReleaseInstanceResult.cc
src/model/ReopenInstanceRequest.cc
src/model/ReopenInstanceResult.cc
src/model/StartInstanceRequest.cc
src/model/StartInstanceResult.cc
src/model/StopInstanceRequest.cc
src/model/StopInstanceResult.cc
src/model/TagResourcesRequest.cc
src/model/TagResourcesResult.cc
src/model/UntagResourcesRequest.cc
@@ -166,6 +192,8 @@ set(alikafka_src
src/model/UpdateConsumerOffsetResult.cc
src/model/UpdateInstanceConfigRequest.cc
src/model/UpdateInstanceConfigResult.cc
src/model/UpdateTopicConfigRequest.cc
src/model/UpdateTopicConfigResult.cc
src/model/UpgradeInstanceVersionRequest.cc
src/model/UpgradeInstanceVersionResult.cc
src/model/UpgradePostPayOrderRequest.cc

View File

@@ -52,6 +52,10 @@
#include "model/DescribeAclsResult.h"
#include "model/DescribeSaslUsersRequest.h"
#include "model/DescribeSaslUsersResult.h"
#include "model/EnableAutoGroupCreationRequest.h"
#include "model/EnableAutoGroupCreationResult.h"
#include "model/EnableAutoTopicCreationRequest.h"
#include "model/EnableAutoTopicCreationResult.h"
#include "model/GetAllInstanceIdListRequest.h"
#include "model/GetAllInstanceIdListResult.h"
#include "model/GetAllowedIpListRequest.h"
@@ -68,6 +72,8 @@
#include "model/GetTopicListResult.h"
#include "model/GetTopicStatusRequest.h"
#include "model/GetTopicStatusResult.h"
#include "model/GetTopicSubscribeStatusRequest.h"
#include "model/GetTopicSubscribeStatusResult.h"
#include "model/ListTagResourcesRequest.h"
#include "model/ListTagResourcesResult.h"
#include "model/ModifyInstanceNameRequest.h"
@@ -76,10 +82,16 @@
#include "model/ModifyPartitionNumResult.h"
#include "model/ModifyTopicRemarkRequest.h"
#include "model/ModifyTopicRemarkResult.h"
#include "model/QueryMessageRequest.h"
#include "model/QueryMessageResult.h"
#include "model/ReleaseInstanceRequest.h"
#include "model/ReleaseInstanceResult.h"
#include "model/ReopenInstanceRequest.h"
#include "model/ReopenInstanceResult.h"
#include "model/StartInstanceRequest.h"
#include "model/StartInstanceResult.h"
#include "model/StopInstanceRequest.h"
#include "model/StopInstanceResult.h"
#include "model/TagResourcesRequest.h"
#include "model/TagResourcesResult.h"
#include "model/UntagResourcesRequest.h"
@@ -90,6 +102,8 @@
#include "model/UpdateConsumerOffsetResult.h"
#include "model/UpdateInstanceConfigRequest.h"
#include "model/UpdateInstanceConfigResult.h"
#include "model/UpdateTopicConfigRequest.h"
#include "model/UpdateTopicConfigResult.h"
#include "model/UpgradeInstanceVersionRequest.h"
#include "model/UpgradeInstanceVersionResult.h"
#include "model/UpgradePostPayOrderRequest.h"
@@ -150,6 +164,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeSaslUsersResult> DescribeSaslUsersOutcome;
typedef std::future<DescribeSaslUsersOutcome> DescribeSaslUsersOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::DescribeSaslUsersRequest&, const DescribeSaslUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSaslUsersAsyncHandler;
typedef Outcome<Error, Model::EnableAutoGroupCreationResult> EnableAutoGroupCreationOutcome;
typedef std::future<EnableAutoGroupCreationOutcome> EnableAutoGroupCreationOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::EnableAutoGroupCreationRequest&, const EnableAutoGroupCreationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableAutoGroupCreationAsyncHandler;
typedef Outcome<Error, Model::EnableAutoTopicCreationResult> EnableAutoTopicCreationOutcome;
typedef std::future<EnableAutoTopicCreationOutcome> EnableAutoTopicCreationOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::EnableAutoTopicCreationRequest&, const EnableAutoTopicCreationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableAutoTopicCreationAsyncHandler;
typedef Outcome<Error, Model::GetAllInstanceIdListResult> GetAllInstanceIdListOutcome;
typedef std::future<GetAllInstanceIdListOutcome> GetAllInstanceIdListOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::GetAllInstanceIdListRequest&, const GetAllInstanceIdListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAllInstanceIdListAsyncHandler;
@@ -174,6 +194,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetTopicStatusResult> GetTopicStatusOutcome;
typedef std::future<GetTopicStatusOutcome> GetTopicStatusOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::GetTopicStatusRequest&, const GetTopicStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTopicStatusAsyncHandler;
typedef Outcome<Error, Model::GetTopicSubscribeStatusResult> GetTopicSubscribeStatusOutcome;
typedef std::future<GetTopicSubscribeStatusOutcome> GetTopicSubscribeStatusOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::GetTopicSubscribeStatusRequest&, const GetTopicSubscribeStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTopicSubscribeStatusAsyncHandler;
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
@@ -186,12 +209,21 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyTopicRemarkResult> ModifyTopicRemarkOutcome;
typedef std::future<ModifyTopicRemarkOutcome> ModifyTopicRemarkOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::ModifyTopicRemarkRequest&, const ModifyTopicRemarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyTopicRemarkAsyncHandler;
typedef Outcome<Error, Model::QueryMessageResult> QueryMessageOutcome;
typedef std::future<QueryMessageOutcome> QueryMessageOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::QueryMessageRequest&, const QueryMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMessageAsyncHandler;
typedef Outcome<Error, Model::ReleaseInstanceResult> ReleaseInstanceOutcome;
typedef std::future<ReleaseInstanceOutcome> ReleaseInstanceOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::ReleaseInstanceRequest&, const ReleaseInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseInstanceAsyncHandler;
typedef Outcome<Error, Model::ReopenInstanceResult> ReopenInstanceOutcome;
typedef std::future<ReopenInstanceOutcome> ReopenInstanceOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::ReopenInstanceRequest&, const ReopenInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReopenInstanceAsyncHandler;
typedef Outcome<Error, Model::StartInstanceResult> StartInstanceOutcome;
typedef std::future<StartInstanceOutcome> StartInstanceOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::StartInstanceRequest&, const StartInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartInstanceAsyncHandler;
typedef Outcome<Error, Model::StopInstanceResult> StopInstanceOutcome;
typedef std::future<StopInstanceOutcome> StopInstanceOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::StopInstanceRequest&, const StopInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopInstanceAsyncHandler;
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
@@ -207,6 +239,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateInstanceConfigResult> UpdateInstanceConfigOutcome;
typedef std::future<UpdateInstanceConfigOutcome> UpdateInstanceConfigOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::UpdateInstanceConfigRequest&, const UpdateInstanceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceConfigAsyncHandler;
typedef Outcome<Error, Model::UpdateTopicConfigResult> UpdateTopicConfigOutcome;
typedef std::future<UpdateTopicConfigOutcome> UpdateTopicConfigOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::UpdateTopicConfigRequest&, const UpdateTopicConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateTopicConfigAsyncHandler;
typedef Outcome<Error, Model::UpgradeInstanceVersionResult> UpgradeInstanceVersionOutcome;
typedef std::future<UpgradeInstanceVersionOutcome> UpgradeInstanceVersionOutcomeCallable;
typedef std::function<void(const AlikafkaClient*, const Model::UpgradeInstanceVersionRequest&, const UpgradeInstanceVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeInstanceVersionAsyncHandler;
@@ -266,6 +301,12 @@ namespace AlibabaCloud
DescribeSaslUsersOutcome describeSaslUsers(const Model::DescribeSaslUsersRequest &request)const;
void describeSaslUsersAsync(const Model::DescribeSaslUsersRequest& request, const DescribeSaslUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSaslUsersOutcomeCallable describeSaslUsersCallable(const Model::DescribeSaslUsersRequest& request) const;
EnableAutoGroupCreationOutcome enableAutoGroupCreation(const Model::EnableAutoGroupCreationRequest &request)const;
void enableAutoGroupCreationAsync(const Model::EnableAutoGroupCreationRequest& request, const EnableAutoGroupCreationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableAutoGroupCreationOutcomeCallable enableAutoGroupCreationCallable(const Model::EnableAutoGroupCreationRequest& request) const;
EnableAutoTopicCreationOutcome enableAutoTopicCreation(const Model::EnableAutoTopicCreationRequest &request)const;
void enableAutoTopicCreationAsync(const Model::EnableAutoTopicCreationRequest& request, const EnableAutoTopicCreationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableAutoTopicCreationOutcomeCallable enableAutoTopicCreationCallable(const Model::EnableAutoTopicCreationRequest& request) const;
GetAllInstanceIdListOutcome getAllInstanceIdList(const Model::GetAllInstanceIdListRequest &request)const;
void getAllInstanceIdListAsync(const Model::GetAllInstanceIdListRequest& request, const GetAllInstanceIdListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetAllInstanceIdListOutcomeCallable getAllInstanceIdListCallable(const Model::GetAllInstanceIdListRequest& request) const;
@@ -290,6 +331,9 @@ namespace AlibabaCloud
GetTopicStatusOutcome getTopicStatus(const Model::GetTopicStatusRequest &request)const;
void getTopicStatusAsync(const Model::GetTopicStatusRequest& request, const GetTopicStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTopicStatusOutcomeCallable getTopicStatusCallable(const Model::GetTopicStatusRequest& request) const;
GetTopicSubscribeStatusOutcome getTopicSubscribeStatus(const Model::GetTopicSubscribeStatusRequest &request)const;
void getTopicSubscribeStatusAsync(const Model::GetTopicSubscribeStatusRequest& request, const GetTopicSubscribeStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTopicSubscribeStatusOutcomeCallable getTopicSubscribeStatusCallable(const Model::GetTopicSubscribeStatusRequest& request) const;
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
@@ -302,12 +346,21 @@ namespace AlibabaCloud
ModifyTopicRemarkOutcome modifyTopicRemark(const Model::ModifyTopicRemarkRequest &request)const;
void modifyTopicRemarkAsync(const Model::ModifyTopicRemarkRequest& request, const ModifyTopicRemarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyTopicRemarkOutcomeCallable modifyTopicRemarkCallable(const Model::ModifyTopicRemarkRequest& request) const;
QueryMessageOutcome queryMessage(const Model::QueryMessageRequest &request)const;
void queryMessageAsync(const Model::QueryMessageRequest& request, const QueryMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryMessageOutcomeCallable queryMessageCallable(const Model::QueryMessageRequest& request) const;
ReleaseInstanceOutcome releaseInstance(const Model::ReleaseInstanceRequest &request)const;
void releaseInstanceAsync(const Model::ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReleaseInstanceOutcomeCallable releaseInstanceCallable(const Model::ReleaseInstanceRequest& request) const;
ReopenInstanceOutcome reopenInstance(const Model::ReopenInstanceRequest &request)const;
void reopenInstanceAsync(const Model::ReopenInstanceRequest& request, const ReopenInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReopenInstanceOutcomeCallable reopenInstanceCallable(const Model::ReopenInstanceRequest& request) const;
StartInstanceOutcome startInstance(const Model::StartInstanceRequest &request)const;
void startInstanceAsync(const Model::StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartInstanceOutcomeCallable startInstanceCallable(const Model::StartInstanceRequest& request) const;
StopInstanceOutcome stopInstance(const Model::StopInstanceRequest &request)const;
void stopInstanceAsync(const Model::StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopInstanceOutcomeCallable stopInstanceCallable(const Model::StopInstanceRequest& request) const;
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
@@ -323,6 +376,9 @@ namespace AlibabaCloud
UpdateInstanceConfigOutcome updateInstanceConfig(const Model::UpdateInstanceConfigRequest &request)const;
void updateInstanceConfigAsync(const Model::UpdateInstanceConfigRequest& request, const UpdateInstanceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateInstanceConfigOutcomeCallable updateInstanceConfigCallable(const Model::UpdateInstanceConfigRequest& request) const;
UpdateTopicConfigOutcome updateTopicConfig(const Model::UpdateTopicConfigRequest &request)const;
void updateTopicConfigAsync(const Model::UpdateTopicConfigRequest& request, const UpdateTopicConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateTopicConfigOutcomeCallable updateTopicConfigCallable(const Model::UpdateTopicConfigRequest& request) const;
UpgradeInstanceVersionOutcome upgradeInstanceVersion(const Model::UpgradeInstanceVersionRequest &request)const;
void upgradeInstanceVersionAsync(const Model::UpgradeInstanceVersionRequest& request, const UpgradeInstanceVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpgradeInstanceVersionOutcomeCallable upgradeInstanceVersionCallable(const Model::UpgradeInstanceVersionRequest& request) const;

View File

@@ -34,6 +34,8 @@ public:
void setAclResourcePatternType(const std::string &aclResourcePatternType);
std::string getAclResourceType() const;
void setAclResourceType(const std::string &aclResourceType);
std::string getAclOperationTypes() const;
void setAclOperationTypes(const std::string &aclOperationTypes);
std::string getAclOperationType() const;
void setAclOperationType(const std::string &aclOperationType);
std::string getAclResourceName() const;
@@ -42,16 +44,23 @@ public:
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getHost() const;
void setHost(const std::string &host);
std::string getAclPermissionType() const;
void setAclPermissionType(const std::string &aclPermissionType);
std::string getUsername() const;
void setUsername(const std::string &username);
private:
std::string aclResourcePatternType_;
std::string aclResourceType_;
std::string aclOperationTypes_;
std::string aclOperationType_;
std::string aclResourceName_;
std::string instanceId_;
std::string regionId_;
std::string host_;
std::string aclPermissionType_;
std::string username_;
};
} // namespace Model

View File

@@ -28,6 +28,26 @@ namespace Alikafka {
namespace Model {
class ALIBABACLOUD_ALIKAFKA_EXPORT CreatePrePayOrderRequest : public RpcServiceRequest {
public:
struct ConfluentConfig {
int ksqlStorage;
int controlCenterStorage;
int kafkaRestProxyReplica;
int zooKeeperReplica;
int connectCU;
int kafkaReplica;
int schemaRegistryReplica;
int kafkaCU;
int connectReplica;
int controlCenterCU;
int ksqlReplica;
int controlCenterReplica;
int kafkaStorage;
int zooKeeperStorage;
int ksqlCU;
int schemaRegistryCU;
int zooKeeperCU;
int kafkaRestProxyCU;
};
struct Tag {
std::string value;
std::string key;
@@ -38,16 +58,22 @@ public:
void setIoMax(int ioMax);
int getEipMax() const;
void setEipMax(int eipMax);
int getDuration() const;
void setDuration(int duration);
std::string getSpecType() const;
void setSpecType(const std::string &specType);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
ConfluentConfig getConfluentConfig() const;
void setConfluentConfig(const ConfluentConfig &confluentConfig);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
int getPartitionNum() const;
void setPartitionNum(int partitionNum);
int getPaidType() const;
void setPaidType(int paidType);
int getDiskSize() const;
void setDiskSize(int diskSize);
std::string getIoMaxSpec() const;
@@ -62,11 +88,14 @@ public:
private:
int ioMax_;
int eipMax_;
int duration_;
std::string specType_;
std::string resourceGroupId_;
std::string regionId_;
ConfluentConfig confluentConfig_;
std::vector<Tag> tag_;
int partitionNum_;
int paidType_;
int diskSize_;
std::string ioMaxSpec_;
std::string diskType_;

View File

@@ -38,6 +38,8 @@ public:
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getMechanism() const;
void setMechanism(const std::string &mechanism);
std::string getUsername() const;
void setUsername(const std::string &username);
@@ -46,6 +48,7 @@ private:
std::string password_;
std::string instanceId_;
std::string regionId_;
std::string mechanism_;
std::string username_;
};
} // namespace Model

View File

@@ -34,6 +34,8 @@ public:
void setAclResourcePatternType(const std::string &aclResourcePatternType);
std::string getAclResourceType() const;
void setAclResourceType(const std::string &aclResourceType);
std::string getAclOperationTypes() const;
void setAclOperationTypes(const std::string &aclOperationTypes);
std::string getAclOperationType() const;
void setAclOperationType(const std::string &aclOperationType);
std::string getAclResourceName() const;
@@ -42,16 +44,23 @@ public:
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getHost() const;
void setHost(const std::string &host);
std::string getAclPermissionType() const;
void setAclPermissionType(const std::string &aclPermissionType);
std::string getUsername() const;
void setUsername(const std::string &username);
private:
std::string aclResourcePatternType_;
std::string aclResourceType_;
std::string aclOperationTypes_;
std::string aclOperationType_;
std::string aclResourceName_;
std::string instanceId_;
std::string regionId_;
std::string host_;
std::string aclPermissionType_;
std::string username_;
};
} // namespace Model

View File

@@ -36,6 +36,8 @@ public:
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getMechanism() const;
void setMechanism(const std::string &mechanism);
std::string getUsername() const;
void setUsername(const std::string &username);
@@ -43,6 +45,7 @@ private:
std::string type_;
std::string instanceId_;
std::string regionId_;
std::string mechanism_;
std::string username_;
};
} // namespace Model

View File

@@ -34,21 +34,30 @@ public:
void setAclResourcePatternType(const std::string &aclResourcePatternType);
std::string getAclResourceType() const;
void setAclResourceType(const std::string &aclResourceType);
std::string getAclOperationType() const;
void setAclOperationType(const std::string &aclOperationType);
std::string getAclResourceName() const;
void setAclResourceName(const std::string &aclResourceName);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getHost() const;
void setHost(const std::string &host);
std::string getAclPermissionType() const;
void setAclPermissionType(const std::string &aclPermissionType);
std::string getUsername() const;
void setUsername(const std::string &username);
private:
std::string aclResourcePatternType_;
std::string aclResourceType_;
std::string aclOperationType_;
std::string aclResourceName_;
std::string instanceId_;
std::string regionId_;
std::string host_;
std::string aclPermissionType_;
std::string username_;
};
} // namespace Model

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
std::string username;
std::string aclResourceType;
std::string aclOperationType;
std::string aclPermissionType;
std::string host;
std::string aclResourcePatternType;
};

View File

@@ -36,6 +36,7 @@ namespace AlibabaCloud
{
std::string type;
std::string username;
std::string mechanism;
std::string password;
};

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONREQUEST_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONREQUEST_H_
#include <alibabacloud/alikafka/AlikafkaExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alikafka {
namespace Model {
class ALIBABACLOUD_ALIKAFKA_EXPORT EnableAutoGroupCreationRequest : public RpcServiceRequest {
public:
EnableAutoGroupCreationRequest();
~EnableAutoGroupCreationRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
bool getEnable() const;
void setEnable(bool enable);
private:
std::string instanceId_;
std::string regionId_;
bool enable_;
};
} // namespace Model
} // namespace Alikafka
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONRESULT_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alikafka/AlikafkaExport.h>
namespace AlibabaCloud
{
namespace Alikafka
{
namespace Model
{
class ALIBABACLOUD_ALIKAFKA_EXPORT EnableAutoGroupCreationResult : public ServiceResult
{
public:
EnableAutoGroupCreationResult();
explicit EnableAutoGroupCreationResult(const std::string &payload);
~EnableAutoGroupCreationResult();
std::string getMessage()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONREQUEST_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONREQUEST_H_
#include <alibabacloud/alikafka/AlikafkaExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alikafka {
namespace Model {
class ALIBABACLOUD_ALIKAFKA_EXPORT EnableAutoTopicCreationRequest : public RpcServiceRequest {
public:
EnableAutoTopicCreationRequest();
~EnableAutoTopicCreationRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getOperate() const;
void setOperate(const std::string &operate);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
long getPartitionNum() const;
void setPartitionNum(long partitionNum);
private:
std::string instanceId_;
std::string operate_;
std::string regionId_;
long partitionNum_;
};
} // namespace Model
} // namespace Alikafka
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONRESULT_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alikafka/AlikafkaExport.h>
namespace AlibabaCloud
{
namespace Alikafka
{
namespace Model
{
class ALIBABACLOUD_ALIKAFKA_EXPORT EnableAutoTopicCreationResult : public ServiceResult
{
public:
EnableAutoTopicCreationResult();
explicit EnableAutoTopicCreationResult(const std::string &payload);
~EnableAutoTopicCreationResult();
std::string getMessage()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONRESULT_H_

View File

@@ -52,6 +52,9 @@ namespace AlibabaCloud
explicit GetConsumerListResult(const std::string &payload);
~GetConsumerListResult();
std::string getMessage()const;
int getPageSize()const;
int getCurrentPage()const;
long getTotal()const;
std::vector<ConsumerVO> getConsumerList()const;
int getCode()const;
bool getSuccess()const;
@@ -60,6 +63,9 @@ namespace AlibabaCloud
void parse(const std::string &payload);
private:
std::string message_;
int pageSize_;
int currentPage_;
long total_;
std::vector<ConsumerVO> consumerList_;
int code_;
bool success_;

View File

@@ -48,6 +48,16 @@ namespace AlibabaCloud
long totalDiff;
std::string topic;
};
struct RebalanceInfoListItem
{
bool rebalanceSuccess;
long generation;
long rebalanceTimeConsuming;
long lastRebalanceTimestamp;
std::string reason;
std::string groupId;
};
std::vector<RebalanceInfoListItem> rebalanceInfoList;
long lastTimestamp;
std::vector<TopicListItem> topicList;
long totalDiff;

View File

@@ -38,12 +38,34 @@ namespace AlibabaCloud
{
std::string current2OpenSourceVersion;
};
struct ConfluentConfig
{
int ksqlStorage;
int kafkaRestProxyCU;
int zooKeeperReplica;
int kafkaReplica;
int connectReplica;
int controlCenterStorage;
int schemaRegistryCU;
int kafkaCU;
int connectCU;
int ksqlCU;
int controlCenterReplica;
int ksqlReplica;
int schemaRegistryReplica;
int zooKeeperCU;
int kafkaRestProxyReplica;
int zooKeeperStorage;
int controlCenterCU;
int kafkaStorage;
};
struct TagVO
{
std::string value;
std::string key;
};
int deployType;
int reservedPublishCapacity;
std::string resourceGroupId;
std::string specType;
int ioMax;
@@ -52,9 +74,12 @@ namespace AlibabaCloud
UpgradeServiceDetailInfo upgradeServiceDetailInfo;
std::string saslDomainEndpoint;
std::string name;
int viewInstanceStatusCode;
ConfluentConfig confluentConfig;
int diskType;
std::string sslDomainEndpoint;
int serviceStatus;
int reservedSubscribeCapacity;
int msgRetain;
long expiredTime;
int diskSize;

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSREQUEST_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSREQUEST_H_
#include <alibabacloud/alikafka/AlikafkaExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alikafka {
namespace Model {
class ALIBABACLOUD_ALIKAFKA_EXPORT GetTopicSubscribeStatusRequest : public RpcServiceRequest {
public:
GetTopicSubscribeStatusRequest();
~GetTopicSubscribeStatusRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getTopic() const;
void setTopic(const std::string &topic);
private:
std::string instanceId_;
std::string regionId_;
std::string topic_;
};
} // namespace Model
} // namespace Alikafka
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSRESULT_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alikafka/AlikafkaExport.h>
namespace AlibabaCloud
{
namespace Alikafka
{
namespace Model
{
class ALIBABACLOUD_ALIKAFKA_EXPORT GetTopicSubscribeStatusResult : public ServiceResult
{
public:
struct TopicSubscribeStatus
{
std::vector<std::string> consumerGroups;
std::string topic;
};
GetTopicSubscribeStatusResult();
explicit GetTopicSubscribeStatusResult(const std::string &payload);
~GetTopicSubscribeStatusResult();
std::string getMessage()const;
TopicSubscribeStatus getTopicSubscribeStatus()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
TopicSubscribeStatus topicSubscribeStatus_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSRESULT_H_

View File

@@ -30,20 +30,20 @@ class ALIBABACLOUD_ALIKAFKA_EXPORT ModifyTopicRemarkRequest : public RpcServiceR
public:
ModifyTopicRemarkRequest();
~ModifyTopicRemarkRequest();
std::string getRemark() const;
void setRemark(const std::string &remark);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getTopic() const;
void setTopic(const std::string &topic);
std::string getRemark() const;
void setRemark(const std::string &remark);
private:
std::string remark_;
std::string instanceId_;
std::string regionId_;
std::string topic_;
std::string remark_;
};
} // namespace Model
} // namespace Alikafka

View File

@@ -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_ALIKAFKA_MODEL_QUERYMESSAGEREQUEST_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_QUERYMESSAGEREQUEST_H_
#include <alibabacloud/alikafka/AlikafkaExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alikafka {
namespace Model {
class ALIBABACLOUD_ALIKAFKA_EXPORT QueryMessageRequest : public RpcServiceRequest {
public:
QueryMessageRequest();
~QueryMessageRequest();
std::string getOffset() const;
void setOffset(const std::string &offset);
long getBeginTime() const;
void setBeginTime(long beginTime);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getPartition() const;
void setPartition(const std::string &partition);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getTopic() const;
void setTopic(const std::string &topic);
std::string getQueryType() const;
void setQueryType(const std::string &queryType);
private:
std::string offset_;
long beginTime_;
std::string instanceId_;
std::string partition_;
std::string regionId_;
std::string topic_;
std::string queryType_;
};
} // namespace Model
} // namespace Alikafka
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_QUERYMESSAGEREQUEST_H_

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_QUERYMESSAGERESULT_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_QUERYMESSAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alikafka/AlikafkaExport.h>
namespace AlibabaCloud
{
namespace Alikafka
{
namespace Model
{
class ALIBABACLOUD_ALIKAFKA_EXPORT QueryMessageResult : public ServiceResult
{
public:
struct MessageVO
{
long partition;
int truncatedValueSize;
bool valueTruncated;
long timestamp;
long offset;
int truncatedKeySize;
long checksum;
int serializedValueSize;
std::string value;
std::string timestampType;
bool keyTruncated;
std::string topic;
std::string key;
int serializedKeySize;
};
QueryMessageResult();
explicit QueryMessageResult(const std::string &payload);
~QueryMessageResult();
std::string getMessage()const;
int getCode()const;
std::vector<MessageVO> getMessageList()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int code_;
std::vector<MessageVO> messageList_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_QUERYMESSAGERESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCEREQUEST_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCEREQUEST_H_
#include <alibabacloud/alikafka/AlikafkaExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alikafka {
namespace Model {
class ALIBABACLOUD_ALIKAFKA_EXPORT ReopenInstanceRequest : public RpcServiceRequest {
public:
ReopenInstanceRequest();
~ReopenInstanceRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace Alikafka
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCEREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCERESULT_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alikafka/AlikafkaExport.h>
namespace AlibabaCloud
{
namespace Alikafka
{
namespace Model
{
class ALIBABACLOUD_ALIKAFKA_EXPORT ReopenInstanceResult : public ServiceResult
{
public:
ReopenInstanceResult();
explicit ReopenInstanceResult(const std::string &payload);
~ReopenInstanceResult();
std::string getMessage()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCERESULT_H_

View File

@@ -30,6 +30,8 @@ class ALIBABACLOUD_ALIKAFKA_EXPORT StartInstanceRequest : public RpcServiceReque
public:
StartInstanceRequest();
~StartInstanceRequest();
std::vector<std::string> getVSwitchIds() const;
void setVSwitchIds(const std::vector<std::string> &vSwitchIds);
std::string getSelectedZones() const;
void setSelectedZones(const std::string &selectedZones);
bool getIsEipInner() const;
@@ -72,6 +74,7 @@ public:
void setUsername(const std::string &username);
private:
std::vector<std::string> vSwitchIds_;
std::string selectedZones_;
bool isEipInner_;
std::string securityGroup_;

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCEREQUEST_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCEREQUEST_H_
#include <alibabacloud/alikafka/AlikafkaExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alikafka {
namespace Model {
class ALIBABACLOUD_ALIKAFKA_EXPORT StopInstanceRequest : public RpcServiceRequest {
public:
StopInstanceRequest();
~StopInstanceRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace Alikafka
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCEREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCERESULT_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alikafka/AlikafkaExport.h>
namespace AlibabaCloud
{
namespace Alikafka
{
namespace Model
{
class ALIBABACLOUD_ALIKAFKA_EXPORT StopInstanceResult : public ServiceResult
{
public:
StopInstanceResult();
explicit StopInstanceResult(const std::string &payload);
~StopInstanceResult();
std::string getMessage()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCERESULT_H_

View 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_ALIKAFKA_MODEL_UPDATETOPICCONFIGREQUEST_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_UPDATETOPICCONFIGREQUEST_H_
#include <alibabacloud/alikafka/AlikafkaExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alikafka {
namespace Model {
class ALIBABACLOUD_ALIKAFKA_EXPORT UpdateTopicConfigRequest : public RpcServiceRequest {
public:
UpdateTopicConfigRequest();
~UpdateTopicConfigRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getTopic() const;
void setTopic(const std::string &topic);
std::string getConfig() const;
void setConfig(const std::string &config);
std::string getValue() const;
void setValue(const std::string &value);
private:
std::string instanceId_;
std::string regionId_;
std::string topic_;
std::string config_;
std::string value_;
};
} // namespace Model
} // namespace Alikafka
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPDATETOPICCONFIGREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_UPDATETOPICCONFIGRESULT_H_
#define ALIBABACLOUD_ALIKAFKA_MODEL_UPDATETOPICCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alikafka/AlikafkaExport.h>
namespace AlibabaCloud
{
namespace Alikafka
{
namespace Model
{
class ALIBABACLOUD_ALIKAFKA_EXPORT UpdateTopicConfigResult : public ServiceResult
{
public:
UpdateTopicConfigResult();
explicit UpdateTopicConfigResult(const std::string &payload);
~UpdateTopicConfigResult();
std::string getMessage()const;
std::string getData()const;
long getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
long code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPDATETOPICCONFIGRESULT_H_

View File

@@ -28,8 +28,14 @@ namespace Alikafka {
namespace Model {
class ALIBABACLOUD_ALIKAFKA_EXPORT UpgradePostPayOrderRequest : public RpcServiceRequest {
public:
struct ServerlessConfig {
long reservedPublishCapacity;
long reservedSubscribeCapacity;
};
UpgradePostPayOrderRequest();
~UpgradePostPayOrderRequest();
ServerlessConfig getServerlessConfig() const;
void setServerlessConfig(const ServerlessConfig &serverlessConfig);
int getDiskSize() const;
void setDiskSize(int diskSize);
int getIoMax() const;
@@ -52,6 +58,7 @@ public:
void setPartitionNum(int partitionNum);
private:
ServerlessConfig serverlessConfig_;
int diskSize_;
int ioMax_;
bool eipModel_;

View File

@@ -28,40 +28,66 @@ namespace Alikafka {
namespace Model {
class ALIBABACLOUD_ALIKAFKA_EXPORT UpgradePrePayOrderRequest : public RpcServiceRequest {
public:
struct ConfluentConfig {
int ksqlStorage;
int controlCenterStorage;
int kafkaRestProxyReplica;
int zooKeeperReplica;
int connectCU;
int kafkaReplica;
int schemaRegistryReplica;
int kafkaCU;
int connectReplica;
int controlCenterCU;
int ksqlReplica;
int controlCenterReplica;
int kafkaStorage;
int zooKeeperStorage;
int ksqlCU;
int schemaRegistryCU;
int zooKeeperCU;
int kafkaRestProxyCU;
};
UpgradePrePayOrderRequest();
~UpgradePrePayOrderRequest();
int getDiskSize() const;
void setDiskSize(int diskSize);
int getIoMax() const;
void setIoMax(int ioMax);
bool getEipModel() const;
void setEipModel(bool eipModel);
std::string getIoMaxSpec() const;
void setIoMaxSpec(const std::string &ioMaxSpec);
int getTopicQuota() const;
void setTopicQuota(int topicQuota);
int getEipMax() const;
void setEipMax(int eipMax);
std::string getSpecType() const;
void setSpecType(const std::string &specType);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
ConfluentConfig getConfluentConfig() const;
void setConfluentConfig(const ConfluentConfig &confluentConfig);
int getPartitionNum() const;
void setPartitionNum(int partitionNum);
int getPaidType() const;
void setPaidType(int paidType);
int getDiskSize() const;
void setDiskSize(int diskSize);
std::string getIoMaxSpec() const;
void setIoMaxSpec(const std::string &ioMaxSpec);
int getTopicQuota() const;
void setTopicQuota(int topicQuota);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
private:
int diskSize_;
int ioMax_;
bool eipModel_;
std::string ioMaxSpec_;
int topicQuota_;
int eipMax_;
std::string specType_;
std::string instanceId_;
std::string regionId_;
ConfluentConfig confluentConfig_;
int partitionNum_;
int paidType_;
int diskSize_;
std::string ioMaxSpec_;
int topicQuota_;
std::string instanceId_;
};
} // namespace Model
} // namespace Alikafka

View File

@@ -31,21 +31,21 @@ AlikafkaClient::AlikafkaClient(const Credentials &credentials, const ClientConfi
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, "alikafka");
}
AlikafkaClient::AlikafkaClient(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, "alikafka");
}
AlikafkaClient::AlikafkaClient(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, "alikafka");
}
AlikafkaClient::~AlikafkaClient()
@@ -591,6 +591,78 @@ AlikafkaClient::DescribeSaslUsersOutcomeCallable AlikafkaClient::describeSaslUse
return task->get_future();
}
AlikafkaClient::EnableAutoGroupCreationOutcome AlikafkaClient::enableAutoGroupCreation(const EnableAutoGroupCreationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EnableAutoGroupCreationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EnableAutoGroupCreationOutcome(EnableAutoGroupCreationResult(outcome.result()));
else
return EnableAutoGroupCreationOutcome(outcome.error());
}
void AlikafkaClient::enableAutoGroupCreationAsync(const EnableAutoGroupCreationRequest& request, const EnableAutoGroupCreationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, enableAutoGroupCreation(request), context);
};
asyncExecute(new Runnable(fn));
}
AlikafkaClient::EnableAutoGroupCreationOutcomeCallable AlikafkaClient::enableAutoGroupCreationCallable(const EnableAutoGroupCreationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EnableAutoGroupCreationOutcome()>>(
[this, request]()
{
return this->enableAutoGroupCreation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlikafkaClient::EnableAutoTopicCreationOutcome AlikafkaClient::enableAutoTopicCreation(const EnableAutoTopicCreationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EnableAutoTopicCreationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EnableAutoTopicCreationOutcome(EnableAutoTopicCreationResult(outcome.result()));
else
return EnableAutoTopicCreationOutcome(outcome.error());
}
void AlikafkaClient::enableAutoTopicCreationAsync(const EnableAutoTopicCreationRequest& request, const EnableAutoTopicCreationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, enableAutoTopicCreation(request), context);
};
asyncExecute(new Runnable(fn));
}
AlikafkaClient::EnableAutoTopicCreationOutcomeCallable AlikafkaClient::enableAutoTopicCreationCallable(const EnableAutoTopicCreationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EnableAutoTopicCreationOutcome()>>(
[this, request]()
{
return this->enableAutoTopicCreation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlikafkaClient::GetAllInstanceIdListOutcome AlikafkaClient::getAllInstanceIdList(const GetAllInstanceIdListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -879,6 +951,42 @@ AlikafkaClient::GetTopicStatusOutcomeCallable AlikafkaClient::getTopicStatusCall
return task->get_future();
}
AlikafkaClient::GetTopicSubscribeStatusOutcome AlikafkaClient::getTopicSubscribeStatus(const GetTopicSubscribeStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTopicSubscribeStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTopicSubscribeStatusOutcome(GetTopicSubscribeStatusResult(outcome.result()));
else
return GetTopicSubscribeStatusOutcome(outcome.error());
}
void AlikafkaClient::getTopicSubscribeStatusAsync(const GetTopicSubscribeStatusRequest& request, const GetTopicSubscribeStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTopicSubscribeStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
AlikafkaClient::GetTopicSubscribeStatusOutcomeCallable AlikafkaClient::getTopicSubscribeStatusCallable(const GetTopicSubscribeStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTopicSubscribeStatusOutcome()>>(
[this, request]()
{
return this->getTopicSubscribeStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlikafkaClient::ListTagResourcesOutcome AlikafkaClient::listTagResources(const ListTagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1023,6 +1131,42 @@ AlikafkaClient::ModifyTopicRemarkOutcomeCallable AlikafkaClient::modifyTopicRema
return task->get_future();
}
AlikafkaClient::QueryMessageOutcome AlikafkaClient::queryMessage(const QueryMessageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryMessageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryMessageOutcome(QueryMessageResult(outcome.result()));
else
return QueryMessageOutcome(outcome.error());
}
void AlikafkaClient::queryMessageAsync(const QueryMessageRequest& request, const QueryMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryMessage(request), context);
};
asyncExecute(new Runnable(fn));
}
AlikafkaClient::QueryMessageOutcomeCallable AlikafkaClient::queryMessageCallable(const QueryMessageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryMessageOutcome()>>(
[this, request]()
{
return this->queryMessage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlikafkaClient::ReleaseInstanceOutcome AlikafkaClient::releaseInstance(const ReleaseInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1059,6 +1203,42 @@ AlikafkaClient::ReleaseInstanceOutcomeCallable AlikafkaClient::releaseInstanceCa
return task->get_future();
}
AlikafkaClient::ReopenInstanceOutcome AlikafkaClient::reopenInstance(const ReopenInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ReopenInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ReopenInstanceOutcome(ReopenInstanceResult(outcome.result()));
else
return ReopenInstanceOutcome(outcome.error());
}
void AlikafkaClient::reopenInstanceAsync(const ReopenInstanceRequest& request, const ReopenInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, reopenInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
AlikafkaClient::ReopenInstanceOutcomeCallable AlikafkaClient::reopenInstanceCallable(const ReopenInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ReopenInstanceOutcome()>>(
[this, request]()
{
return this->reopenInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlikafkaClient::StartInstanceOutcome AlikafkaClient::startInstance(const StartInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1275,42 @@ AlikafkaClient::StartInstanceOutcomeCallable AlikafkaClient::startInstanceCallab
return task->get_future();
}
AlikafkaClient::StopInstanceOutcome AlikafkaClient::stopInstance(const StopInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopInstanceOutcome(StopInstanceResult(outcome.result()));
else
return StopInstanceOutcome(outcome.error());
}
void AlikafkaClient::stopInstanceAsync(const StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
AlikafkaClient::StopInstanceOutcomeCallable AlikafkaClient::stopInstanceCallable(const StopInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopInstanceOutcome()>>(
[this, request]()
{
return this->stopInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlikafkaClient::TagResourcesOutcome AlikafkaClient::tagResources(const TagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1275,6 +1491,42 @@ AlikafkaClient::UpdateInstanceConfigOutcomeCallable AlikafkaClient::updateInstan
return task->get_future();
}
AlikafkaClient::UpdateTopicConfigOutcome AlikafkaClient::updateTopicConfig(const UpdateTopicConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateTopicConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateTopicConfigOutcome(UpdateTopicConfigResult(outcome.result()));
else
return UpdateTopicConfigOutcome(outcome.error());
}
void AlikafkaClient::updateTopicConfigAsync(const UpdateTopicConfigRequest& request, const UpdateTopicConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateTopicConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
AlikafkaClient::UpdateTopicConfigOutcomeCallable AlikafkaClient::updateTopicConfigCallable(const UpdateTopicConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateTopicConfigOutcome()>>(
[this, request]()
{
return this->updateTopicConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlikafkaClient::UpgradeInstanceVersionOutcome AlikafkaClient::upgradeInstanceVersion(const UpgradeInstanceVersionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -43,6 +43,15 @@ void CreateAclRequest::setAclResourceType(const std::string &aclResourceType) {
setParameter(std::string("AclResourceType"), aclResourceType);
}
std::string CreateAclRequest::getAclOperationTypes() const {
return aclOperationTypes_;
}
void CreateAclRequest::setAclOperationTypes(const std::string &aclOperationTypes) {
aclOperationTypes_ = aclOperationTypes;
setParameter(std::string("AclOperationTypes"), aclOperationTypes);
}
std::string CreateAclRequest::getAclOperationType() const {
return aclOperationType_;
}
@@ -79,6 +88,24 @@ void CreateAclRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
std::string CreateAclRequest::getHost() const {
return host_;
}
void CreateAclRequest::setHost(const std::string &host) {
host_ = host;
setParameter(std::string("Host"), host);
}
std::string CreateAclRequest::getAclPermissionType() const {
return aclPermissionType_;
}
void CreateAclRequest::setAclPermissionType(const std::string &aclPermissionType) {
aclPermissionType_ = aclPermissionType;
setParameter(std::string("AclPermissionType"), aclPermissionType);
}
std::string CreateAclRequest::getUsername() const {
return username_;
}

View File

@@ -43,6 +43,15 @@ void CreatePrePayOrderRequest::setEipMax(int eipMax) {
setParameter(std::string("EipMax"), std::to_string(eipMax));
}
int CreatePrePayOrderRequest::getDuration() const {
return duration_;
}
void CreatePrePayOrderRequest::setDuration(int duration) {
duration_ = duration;
setParameter(std::string("Duration"), std::to_string(duration));
}
std::string CreatePrePayOrderRequest::getSpecType() const {
return specType_;
}
@@ -70,6 +79,32 @@ void CreatePrePayOrderRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
CreatePrePayOrderRequest::ConfluentConfig CreatePrePayOrderRequest::getConfluentConfig() const {
return confluentConfig_;
}
void CreatePrePayOrderRequest::setConfluentConfig(const CreatePrePayOrderRequest::ConfluentConfig &confluentConfig) {
confluentConfig_ = confluentConfig;
setParameter(std::string("ConfluentConfig") + ".KsqlStorage", std::to_string(confluentConfig.ksqlStorage));
setParameter(std::string("ConfluentConfig") + ".ControlCenterStorage", std::to_string(confluentConfig.controlCenterStorage));
setParameter(std::string("ConfluentConfig") + ".KafkaRestProxyReplica", std::to_string(confluentConfig.kafkaRestProxyReplica));
setParameter(std::string("ConfluentConfig") + ".ZooKeeperReplica", std::to_string(confluentConfig.zooKeeperReplica));
setParameter(std::string("ConfluentConfig") + ".ConnectCU", std::to_string(confluentConfig.connectCU));
setParameter(std::string("ConfluentConfig") + ".KafkaReplica", std::to_string(confluentConfig.kafkaReplica));
setParameter(std::string("ConfluentConfig") + ".SchemaRegistryReplica", std::to_string(confluentConfig.schemaRegistryReplica));
setParameter(std::string("ConfluentConfig") + ".KafkaCU", std::to_string(confluentConfig.kafkaCU));
setParameter(std::string("ConfluentConfig") + ".ConnectReplica", std::to_string(confluentConfig.connectReplica));
setParameter(std::string("ConfluentConfig") + ".ControlCenterCU", std::to_string(confluentConfig.controlCenterCU));
setParameter(std::string("ConfluentConfig") + ".KsqlReplica", std::to_string(confluentConfig.ksqlReplica));
setParameter(std::string("ConfluentConfig") + ".ControlCenterReplica", std::to_string(confluentConfig.controlCenterReplica));
setParameter(std::string("ConfluentConfig") + ".KafkaStorage", std::to_string(confluentConfig.kafkaStorage));
setParameter(std::string("ConfluentConfig") + ".ZooKeeperStorage", std::to_string(confluentConfig.zooKeeperStorage));
setParameter(std::string("ConfluentConfig") + ".KsqlCU", std::to_string(confluentConfig.ksqlCU));
setParameter(std::string("ConfluentConfig") + ".SchemaRegistryCU", std::to_string(confluentConfig.schemaRegistryCU));
setParameter(std::string("ConfluentConfig") + ".ZooKeeperCU", std::to_string(confluentConfig.zooKeeperCU));
setParameter(std::string("ConfluentConfig") + ".KafkaRestProxyCU", std::to_string(confluentConfig.kafkaRestProxyCU));
}
std::vector<CreatePrePayOrderRequest::Tag> CreatePrePayOrderRequest::getTag() const {
return tag_;
}
@@ -93,6 +128,15 @@ void CreatePrePayOrderRequest::setPartitionNum(int partitionNum) {
setParameter(std::string("PartitionNum"), std::to_string(partitionNum));
}
int CreatePrePayOrderRequest::getPaidType() const {
return paidType_;
}
void CreatePrePayOrderRequest::setPaidType(int paidType) {
paidType_ = paidType;
setParameter(std::string("PaidType"), std::to_string(paidType));
}
int CreatePrePayOrderRequest::getDiskSize() const {
return diskSize_;
}

View File

@@ -61,6 +61,15 @@ void CreateSaslUserRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
std::string CreateSaslUserRequest::getMechanism() const {
return mechanism_;
}
void CreateSaslUserRequest::setMechanism(const std::string &mechanism) {
mechanism_ = mechanism;
setParameter(std::string("Mechanism"), mechanism);
}
std::string CreateSaslUserRequest::getUsername() const {
return username_;
}

View File

@@ -43,6 +43,15 @@ void DeleteAclRequest::setAclResourceType(const std::string &aclResourceType) {
setParameter(std::string("AclResourceType"), aclResourceType);
}
std::string DeleteAclRequest::getAclOperationTypes() const {
return aclOperationTypes_;
}
void DeleteAclRequest::setAclOperationTypes(const std::string &aclOperationTypes) {
aclOperationTypes_ = aclOperationTypes;
setParameter(std::string("AclOperationTypes"), aclOperationTypes);
}
std::string DeleteAclRequest::getAclOperationType() const {
return aclOperationType_;
}
@@ -79,6 +88,24 @@ void DeleteAclRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
std::string DeleteAclRequest::getHost() const {
return host_;
}
void DeleteAclRequest::setHost(const std::string &host) {
host_ = host;
setParameter(std::string("Host"), host);
}
std::string DeleteAclRequest::getAclPermissionType() const {
return aclPermissionType_;
}
void DeleteAclRequest::setAclPermissionType(const std::string &aclPermissionType) {
aclPermissionType_ = aclPermissionType;
setParameter(std::string("AclPermissionType"), aclPermissionType);
}
std::string DeleteAclRequest::getUsername() const {
return username_;
}

View File

@@ -52,6 +52,15 @@ void DeleteSaslUserRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
std::string DeleteSaslUserRequest::getMechanism() const {
return mechanism_;
}
void DeleteSaslUserRequest::setMechanism(const std::string &mechanism) {
mechanism_ = mechanism;
setParameter(std::string("Mechanism"), mechanism);
}
std::string DeleteSaslUserRequest::getUsername() const {
return username_;
}

View File

@@ -43,6 +43,15 @@ void DescribeAclsRequest::setAclResourceType(const std::string &aclResourceType)
setParameter(std::string("AclResourceType"), aclResourceType);
}
std::string DescribeAclsRequest::getAclOperationType() const {
return aclOperationType_;
}
void DescribeAclsRequest::setAclOperationType(const std::string &aclOperationType) {
aclOperationType_ = aclOperationType;
setParameter(std::string("AclOperationType"), aclOperationType);
}
std::string DescribeAclsRequest::getAclResourceName() const {
return aclResourceName_;
}
@@ -70,6 +79,24 @@ void DescribeAclsRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeAclsRequest::getHost() const {
return host_;
}
void DescribeAclsRequest::setHost(const std::string &host) {
host_ = host;
setParameter(std::string("Host"), host);
}
std::string DescribeAclsRequest::getAclPermissionType() const {
return aclPermissionType_;
}
void DescribeAclsRequest::setAclPermissionType(const std::string &aclPermissionType) {
aclPermissionType_ = aclPermissionType;
setParameter(std::string("AclPermissionType"), aclPermissionType);
}
std::string DescribeAclsRequest::getUsername() const {
return username_;
}

View File

@@ -55,6 +55,8 @@ void DescribeAclsResult::parse(const std::string &payload)
kafkaAclListObject.aclResourcePatternType = valueKafkaAclListKafkaAclVO["AclResourcePatternType"].asString();
if(!valueKafkaAclListKafkaAclVO["Username"].isNull())
kafkaAclListObject.username = valueKafkaAclListKafkaAclVO["Username"].asString();
if(!valueKafkaAclListKafkaAclVO["AclPermissionType"].isNull())
kafkaAclListObject.aclPermissionType = valueKafkaAclListKafkaAclVO["AclPermissionType"].asString();
kafkaAclList_.push_back(kafkaAclListObject);
}
if(!value["Code"].isNull())

View File

@@ -49,6 +49,8 @@ void DescribeSaslUsersResult::parse(const std::string &payload)
saslUserListObject.password = valueSaslUserListSaslUserVO["Password"].asString();
if(!valueSaslUserListSaslUserVO["Username"].isNull())
saslUserListObject.username = valueSaslUserListSaslUserVO["Username"].asString();
if(!valueSaslUserListSaslUserVO["Mechanism"].isNull())
saslUserListObject.mechanism = valueSaslUserListSaslUserVO["Mechanism"].asString();
saslUserList_.push_back(saslUserListObject);
}
if(!value["Code"].isNull())

View 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.
*/
#include <alibabacloud/alikafka/model/EnableAutoGroupCreationRequest.h>
using AlibabaCloud::Alikafka::Model::EnableAutoGroupCreationRequest;
EnableAutoGroupCreationRequest::EnableAutoGroupCreationRequest()
: RpcServiceRequest("alikafka", "2019-09-16", "EnableAutoGroupCreation") {
setMethod(HttpRequest::Method::Post);
}
EnableAutoGroupCreationRequest::~EnableAutoGroupCreationRequest() {}
std::string EnableAutoGroupCreationRequest::getInstanceId() const {
return instanceId_;
}
void EnableAutoGroupCreationRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string EnableAutoGroupCreationRequest::getRegionId() const {
return regionId_;
}
void EnableAutoGroupCreationRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
bool EnableAutoGroupCreationRequest::getEnable() const {
return enable_;
}
void EnableAutoGroupCreationRequest::setEnable(bool enable) {
enable_ = enable;
setParameter(std::string("Enable"), enable ? "true" : "false");
}

View 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/alikafka/model/EnableAutoGroupCreationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alikafka;
using namespace AlibabaCloud::Alikafka::Model;
EnableAutoGroupCreationResult::EnableAutoGroupCreationResult() :
ServiceResult()
{}
EnableAutoGroupCreationResult::EnableAutoGroupCreationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableAutoGroupCreationResult::~EnableAutoGroupCreationResult()
{}
void EnableAutoGroupCreationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string EnableAutoGroupCreationResult::getMessage()const
{
return message_;
}
int EnableAutoGroupCreationResult::getCode()const
{
return code_;
}
bool EnableAutoGroupCreationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alikafka/model/EnableAutoTopicCreationRequest.h>
using AlibabaCloud::Alikafka::Model::EnableAutoTopicCreationRequest;
EnableAutoTopicCreationRequest::EnableAutoTopicCreationRequest()
: RpcServiceRequest("alikafka", "2019-09-16", "EnableAutoTopicCreation") {
setMethod(HttpRequest::Method::Post);
}
EnableAutoTopicCreationRequest::~EnableAutoTopicCreationRequest() {}
std::string EnableAutoTopicCreationRequest::getInstanceId() const {
return instanceId_;
}
void EnableAutoTopicCreationRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string EnableAutoTopicCreationRequest::getOperate() const {
return operate_;
}
void EnableAutoTopicCreationRequest::setOperate(const std::string &operate) {
operate_ = operate;
setParameter(std::string("Operate"), operate);
}
std::string EnableAutoTopicCreationRequest::getRegionId() const {
return regionId_;
}
void EnableAutoTopicCreationRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
long EnableAutoTopicCreationRequest::getPartitionNum() const {
return partitionNum_;
}
void EnableAutoTopicCreationRequest::setPartitionNum(long partitionNum) {
partitionNum_ = partitionNum;
setParameter(std::string("PartitionNum"), std::to_string(partitionNum));
}

View 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/alikafka/model/EnableAutoTopicCreationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alikafka;
using namespace AlibabaCloud::Alikafka::Model;
EnableAutoTopicCreationResult::EnableAutoTopicCreationResult() :
ServiceResult()
{}
EnableAutoTopicCreationResult::EnableAutoTopicCreationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableAutoTopicCreationResult::~EnableAutoTopicCreationResult()
{}
void EnableAutoTopicCreationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string EnableAutoTopicCreationResult::getMessage()const
{
return message_;
}
int EnableAutoTopicCreationResult::getCode()const
{
return code_;
}
bool EnableAutoTopicCreationResult::getSuccess()const
{
return success_;
}

View File

@@ -71,6 +71,12 @@ void GetConsumerListResult::parse(const std::string &payload)
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
}
@@ -79,6 +85,21 @@ std::string GetConsumerListResult::getMessage()const
return message_;
}
int GetConsumerListResult::getPageSize()const
{
return pageSize_;
}
int GetConsumerListResult::getCurrentPage()const
{
return currentPage_;
}
long GetConsumerListResult::getTotal()const
{
return total_;
}
std::vector<GetConsumerListResult::ConsumerVO> GetConsumerListResult::getConsumerList()const
{
return consumerList_;

View File

@@ -70,6 +70,24 @@ void GetConsumerProgressResult::parse(const std::string &payload)
}
consumerProgress_.topicList.push_back(topicListItemObject);
}
auto allRebalanceInfoListNode = consumerProgressNode["RebalanceInfoList"]["RebalanceInfoListItem"];
for (auto consumerProgressNodeRebalanceInfoListRebalanceInfoListItem : allRebalanceInfoListNode)
{
ConsumerProgress::RebalanceInfoListItem rebalanceInfoListItemObject;
if(!consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["Generation"].isNull())
rebalanceInfoListItemObject.generation = std::stol(consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["Generation"].asString());
if(!consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["LastRebalanceTimestamp"].isNull())
rebalanceInfoListItemObject.lastRebalanceTimestamp = std::stol(consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["LastRebalanceTimestamp"].asString());
if(!consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["Reason"].isNull())
rebalanceInfoListItemObject.reason = consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["Reason"].asString();
if(!consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["GroupId"].isNull())
rebalanceInfoListItemObject.groupId = consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["GroupId"].asString();
if(!consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["RebalanceTimeConsuming"].isNull())
rebalanceInfoListItemObject.rebalanceTimeConsuming = std::stol(consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["RebalanceTimeConsuming"].asString());
if(!consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["RebalanceSuccess"].isNull())
rebalanceInfoListItemObject.rebalanceSuccess = consumerProgressNodeRebalanceInfoListRebalanceInfoListItem["RebalanceSuccess"].asString() == "true";
consumerProgress_.rebalanceInfoList.push_back(rebalanceInfoListItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -107,6 +107,12 @@ void GetInstanceListResult::parse(const std::string &payload)
instanceListObject.standardZoneId = valueInstanceListInstanceVO["StandardZoneId"].asString();
if(!valueInstanceListInstanceVO["IoMaxSpec"].isNull())
instanceListObject.ioMaxSpec = valueInstanceListInstanceVO["IoMaxSpec"].asString();
if(!valueInstanceListInstanceVO["ReservedPublishCapacity"].isNull())
instanceListObject.reservedPublishCapacity = std::stoi(valueInstanceListInstanceVO["ReservedPublishCapacity"].asString());
if(!valueInstanceListInstanceVO["ReservedSubscribeCapacity"].isNull())
instanceListObject.reservedSubscribeCapacity = std::stoi(valueInstanceListInstanceVO["ReservedSubscribeCapacity"].asString());
if(!valueInstanceListInstanceVO["ViewInstanceStatusCode"].isNull())
instanceListObject.viewInstanceStatusCode = std::stoi(valueInstanceListInstanceVO["ViewInstanceStatusCode"].asString());
auto allTagsNode = valueInstanceListInstanceVO["Tags"]["TagVO"];
for (auto valueInstanceListInstanceVOTagsTagVO : allTagsNode)
{
@@ -120,6 +126,43 @@ void GetInstanceListResult::parse(const std::string &payload)
auto upgradeServiceDetailInfoNode = value["UpgradeServiceDetailInfo"];
if(!upgradeServiceDetailInfoNode["Current2OpenSourceVersion"].isNull())
instanceListObject.upgradeServiceDetailInfo.current2OpenSourceVersion = upgradeServiceDetailInfoNode["Current2OpenSourceVersion"].asString();
auto confluentConfigNode = value["ConfluentConfig"];
if(!confluentConfigNode["KafkaCU"].isNull())
instanceListObject.confluentConfig.kafkaCU = std::stoi(confluentConfigNode["KafkaCU"].asString());
if(!confluentConfigNode["KafkaStorage"].isNull())
instanceListObject.confluentConfig.kafkaStorage = std::stoi(confluentConfigNode["KafkaStorage"].asString());
if(!confluentConfigNode["KafkaReplica"].isNull())
instanceListObject.confluentConfig.kafkaReplica = std::stoi(confluentConfigNode["KafkaReplica"].asString());
if(!confluentConfigNode["ZooKeeperCU"].isNull())
instanceListObject.confluentConfig.zooKeeperCU = std::stoi(confluentConfigNode["ZooKeeperCU"].asString());
if(!confluentConfigNode["ZooKeeperStorage"].isNull())
instanceListObject.confluentConfig.zooKeeperStorage = std::stoi(confluentConfigNode["ZooKeeperStorage"].asString());
if(!confluentConfigNode["ZooKeeperReplica"].isNull())
instanceListObject.confluentConfig.zooKeeperReplica = std::stoi(confluentConfigNode["ZooKeeperReplica"].asString());
if(!confluentConfigNode["ControlCenterCU"].isNull())
instanceListObject.confluentConfig.controlCenterCU = std::stoi(confluentConfigNode["ControlCenterCU"].asString());
if(!confluentConfigNode["ControlCenterStorage"].isNull())
instanceListObject.confluentConfig.controlCenterStorage = std::stoi(confluentConfigNode["ControlCenterStorage"].asString());
if(!confluentConfigNode["ControlCenterReplica"].isNull())
instanceListObject.confluentConfig.controlCenterReplica = std::stoi(confluentConfigNode["ControlCenterReplica"].asString());
if(!confluentConfigNode["SchemaRegistryCU"].isNull())
instanceListObject.confluentConfig.schemaRegistryCU = std::stoi(confluentConfigNode["SchemaRegistryCU"].asString());
if(!confluentConfigNode["SchemaRegistryReplica"].isNull())
instanceListObject.confluentConfig.schemaRegistryReplica = std::stoi(confluentConfigNode["SchemaRegistryReplica"].asString());
if(!confluentConfigNode["ConnectCU"].isNull())
instanceListObject.confluentConfig.connectCU = std::stoi(confluentConfigNode["ConnectCU"].asString());
if(!confluentConfigNode["ConnectReplica"].isNull())
instanceListObject.confluentConfig.connectReplica = std::stoi(confluentConfigNode["ConnectReplica"].asString());
if(!confluentConfigNode["KsqlCU"].isNull())
instanceListObject.confluentConfig.ksqlCU = std::stoi(confluentConfigNode["KsqlCU"].asString());
if(!confluentConfigNode["KsqlStorage"].isNull())
instanceListObject.confluentConfig.ksqlStorage = std::stoi(confluentConfigNode["KsqlStorage"].asString());
if(!confluentConfigNode["KsqlReplica"].isNull())
instanceListObject.confluentConfig.ksqlReplica = std::stoi(confluentConfigNode["KsqlReplica"].asString());
if(!confluentConfigNode["KafkaRestProxyCU"].isNull())
instanceListObject.confluentConfig.kafkaRestProxyCU = std::stoi(confluentConfigNode["KafkaRestProxyCU"].asString());
if(!confluentConfigNode["KafkaRestProxyReplica"].isNull())
instanceListObject.confluentConfig.kafkaRestProxyReplica = std::stoi(confluentConfigNode["KafkaRestProxyReplica"].asString());
instanceList_.push_back(instanceListObject);
}
if(!value["Code"].isNull())

View 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.
*/
#include <alibabacloud/alikafka/model/GetTopicSubscribeStatusRequest.h>
using AlibabaCloud::Alikafka::Model::GetTopicSubscribeStatusRequest;
GetTopicSubscribeStatusRequest::GetTopicSubscribeStatusRequest()
: RpcServiceRequest("alikafka", "2019-09-16", "GetTopicSubscribeStatus") {
setMethod(HttpRequest::Method::Post);
}
GetTopicSubscribeStatusRequest::~GetTopicSubscribeStatusRequest() {}
std::string GetTopicSubscribeStatusRequest::getInstanceId() const {
return instanceId_;
}
void GetTopicSubscribeStatusRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string GetTopicSubscribeStatusRequest::getRegionId() const {
return regionId_;
}
void GetTopicSubscribeStatusRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string GetTopicSubscribeStatusRequest::getTopic() const {
return topic_;
}
void GetTopicSubscribeStatusRequest::setTopic(const std::string &topic) {
topic_ = topic;
setParameter(std::string("Topic"), topic);
}

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alikafka/model/GetTopicSubscribeStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alikafka;
using namespace AlibabaCloud::Alikafka::Model;
GetTopicSubscribeStatusResult::GetTopicSubscribeStatusResult() :
ServiceResult()
{}
GetTopicSubscribeStatusResult::GetTopicSubscribeStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTopicSubscribeStatusResult::~GetTopicSubscribeStatusResult()
{}
void GetTopicSubscribeStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto topicSubscribeStatusNode = value["TopicSubscribeStatus"];
if(!topicSubscribeStatusNode["Topic"].isNull())
topicSubscribeStatus_.topic = topicSubscribeStatusNode["Topic"].asString();
auto allConsumerGroups = topicSubscribeStatusNode["ConsumerGroups"]["ConsumerGroups"];
for (auto value : allConsumerGroups)
topicSubscribeStatus_.consumerGroups.push_back(value.asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetTopicSubscribeStatusResult::getMessage()const
{
return message_;
}
GetTopicSubscribeStatusResult::TopicSubscribeStatus GetTopicSubscribeStatusResult::getTopicSubscribeStatus()const
{
return topicSubscribeStatus_;
}
int GetTopicSubscribeStatusResult::getCode()const
{
return code_;
}
bool GetTopicSubscribeStatusResult::getSuccess()const
{
return success_;
}

View File

@@ -25,6 +25,15 @@ ModifyTopicRemarkRequest::ModifyTopicRemarkRequest()
ModifyTopicRemarkRequest::~ModifyTopicRemarkRequest() {}
std::string ModifyTopicRemarkRequest::getRemark() const {
return remark_;
}
void ModifyTopicRemarkRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}
std::string ModifyTopicRemarkRequest::getInstanceId() const {
return instanceId_;
}
@@ -52,12 +61,3 @@ void ModifyTopicRemarkRequest::setTopic(const std::string &topic) {
setParameter(std::string("Topic"), topic);
}
std::string ModifyTopicRemarkRequest::getRemark() const {
return remark_;
}
void ModifyTopicRemarkRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alikafka/model/QueryMessageRequest.h>
using AlibabaCloud::Alikafka::Model::QueryMessageRequest;
QueryMessageRequest::QueryMessageRequest()
: RpcServiceRequest("alikafka", "2019-09-16", "QueryMessage") {
setMethod(HttpRequest::Method::Get);
}
QueryMessageRequest::~QueryMessageRequest() {}
std::string QueryMessageRequest::getOffset() const {
return offset_;
}
void QueryMessageRequest::setOffset(const std::string &offset) {
offset_ = offset;
setParameter(std::string("Offset"), offset);
}
long QueryMessageRequest::getBeginTime() const {
return beginTime_;
}
void QueryMessageRequest::setBeginTime(long beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), std::to_string(beginTime));
}
std::string QueryMessageRequest::getInstanceId() const {
return instanceId_;
}
void QueryMessageRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string QueryMessageRequest::getPartition() const {
return partition_;
}
void QueryMessageRequest::setPartition(const std::string &partition) {
partition_ = partition;
setParameter(std::string("Partition"), partition);
}
std::string QueryMessageRequest::getRegionId() const {
return regionId_;
}
void QueryMessageRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string QueryMessageRequest::getTopic() const {
return topic_;
}
void QueryMessageRequest::setTopic(const std::string &topic) {
topic_ = topic;
setParameter(std::string("Topic"), topic);
}
std::string QueryMessageRequest::getQueryType() const {
return queryType_;
}
void QueryMessageRequest::setQueryType(const std::string &queryType) {
queryType_ = queryType;
setParameter(std::string("QueryType"), queryType);
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/alikafka/model/QueryMessageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alikafka;
using namespace AlibabaCloud::Alikafka::Model;
QueryMessageResult::QueryMessageResult() :
ServiceResult()
{}
QueryMessageResult::QueryMessageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMessageResult::~QueryMessageResult()
{}
void QueryMessageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMessageListNode = value["MessageList"]["MessageVO"];
for (auto valueMessageListMessageVO : allMessageListNode)
{
MessageVO messageListObject;
if(!valueMessageListMessageVO["Topic"].isNull())
messageListObject.topic = valueMessageListMessageVO["Topic"].asString();
if(!valueMessageListMessageVO["Partition"].isNull())
messageListObject.partition = std::stol(valueMessageListMessageVO["Partition"].asString());
if(!valueMessageListMessageVO["Offset"].isNull())
messageListObject.offset = std::stol(valueMessageListMessageVO["Offset"].asString());
if(!valueMessageListMessageVO["Timestamp"].isNull())
messageListObject.timestamp = std::stol(valueMessageListMessageVO["Timestamp"].asString());
if(!valueMessageListMessageVO["TimestampType"].isNull())
messageListObject.timestampType = valueMessageListMessageVO["TimestampType"].asString();
if(!valueMessageListMessageVO["Checksum"].isNull())
messageListObject.checksum = std::stol(valueMessageListMessageVO["Checksum"].asString());
if(!valueMessageListMessageVO["SerializedKeySize"].isNull())
messageListObject.serializedKeySize = std::stoi(valueMessageListMessageVO["SerializedKeySize"].asString());
if(!valueMessageListMessageVO["SerializedValueSize"].isNull())
messageListObject.serializedValueSize = std::stoi(valueMessageListMessageVO["SerializedValueSize"].asString());
if(!valueMessageListMessageVO["Key"].isNull())
messageListObject.key = valueMessageListMessageVO["Key"].asString();
if(!valueMessageListMessageVO["Value"].isNull())
messageListObject.value = valueMessageListMessageVO["Value"].asString();
if(!valueMessageListMessageVO["KeyTruncated"].isNull())
messageListObject.keyTruncated = valueMessageListMessageVO["KeyTruncated"].asString() == "true";
if(!valueMessageListMessageVO["ValueTruncated"].isNull())
messageListObject.valueTruncated = valueMessageListMessageVO["ValueTruncated"].asString() == "true";
if(!valueMessageListMessageVO["TruncatedKeySize"].isNull())
messageListObject.truncatedKeySize = std::stoi(valueMessageListMessageVO["TruncatedKeySize"].asString());
if(!valueMessageListMessageVO["TruncatedValueSize"].isNull())
messageListObject.truncatedValueSize = std::stoi(valueMessageListMessageVO["TruncatedValueSize"].asString());
messageList_.push_back(messageListObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string QueryMessageResult::getMessage()const
{
return message_;
}
int QueryMessageResult::getCode()const
{
return code_;
}
std::vector<QueryMessageResult::MessageVO> QueryMessageResult::getMessageList()const
{
return messageList_;
}
bool QueryMessageResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alikafka/model/ReopenInstanceRequest.h>
using AlibabaCloud::Alikafka::Model::ReopenInstanceRequest;
ReopenInstanceRequest::ReopenInstanceRequest()
: RpcServiceRequest("alikafka", "2019-09-16", "ReopenInstance") {
setMethod(HttpRequest::Method::Post);
}
ReopenInstanceRequest::~ReopenInstanceRequest() {}
std::string ReopenInstanceRequest::getInstanceId() const {
return instanceId_;
}
void ReopenInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ReopenInstanceRequest::getRegionId() const {
return regionId_;
}
void ReopenInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/alikafka/model/ReopenInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alikafka;
using namespace AlibabaCloud::Alikafka::Model;
ReopenInstanceResult::ReopenInstanceResult() :
ServiceResult()
{}
ReopenInstanceResult::ReopenInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ReopenInstanceResult::~ReopenInstanceResult()
{}
void ReopenInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ReopenInstanceResult::getMessage()const
{
return message_;
}
int ReopenInstanceResult::getCode()const
{
return code_;
}
bool ReopenInstanceResult::getSuccess()const
{
return success_;
}

View File

@@ -25,6 +25,14 @@ StartInstanceRequest::StartInstanceRequest()
StartInstanceRequest::~StartInstanceRequest() {}
std::vector<std::string> StartInstanceRequest::getVSwitchIds() const {
return vSwitchIds_;
}
void StartInstanceRequest::setVSwitchIds(const std::vector<std::string> &vSwitchIds) {
vSwitchIds_ = vSwitchIds;
}
std::string StartInstanceRequest::getSelectedZones() const {
return selectedZones_;
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alikafka/model/StopInstanceRequest.h>
using AlibabaCloud::Alikafka::Model::StopInstanceRequest;
StopInstanceRequest::StopInstanceRequest()
: RpcServiceRequest("alikafka", "2019-09-16", "StopInstance") {
setMethod(HttpRequest::Method::Post);
}
StopInstanceRequest::~StopInstanceRequest() {}
std::string StopInstanceRequest::getInstanceId() const {
return instanceId_;
}
void StopInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string StopInstanceRequest::getRegionId() const {
return regionId_;
}
void StopInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/alikafka/model/StopInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alikafka;
using namespace AlibabaCloud::Alikafka::Model;
StopInstanceResult::StopInstanceResult() :
ServiceResult()
{}
StopInstanceResult::StopInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopInstanceResult::~StopInstanceResult()
{}
void StopInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string StopInstanceResult::getMessage()const
{
return message_;
}
int StopInstanceResult::getCode()const
{
return code_;
}
bool StopInstanceResult::getSuccess()const
{
return success_;
}

View 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/alikafka/model/UpdateTopicConfigRequest.h>
using AlibabaCloud::Alikafka::Model::UpdateTopicConfigRequest;
UpdateTopicConfigRequest::UpdateTopicConfigRequest()
: RpcServiceRequest("alikafka", "2019-09-16", "UpdateTopicConfig") {
setMethod(HttpRequest::Method::Post);
}
UpdateTopicConfigRequest::~UpdateTopicConfigRequest() {}
std::string UpdateTopicConfigRequest::getInstanceId() const {
return instanceId_;
}
void UpdateTopicConfigRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string UpdateTopicConfigRequest::getRegionId() const {
return regionId_;
}
void UpdateTopicConfigRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string UpdateTopicConfigRequest::getTopic() const {
return topic_;
}
void UpdateTopicConfigRequest::setTopic(const std::string &topic) {
topic_ = topic;
setParameter(std::string("Topic"), topic);
}
std::string UpdateTopicConfigRequest::getConfig() const {
return config_;
}
void UpdateTopicConfigRequest::setConfig(const std::string &config) {
config_ = config;
setParameter(std::string("Config"), config);
}
std::string UpdateTopicConfigRequest::getValue() const {
return value_;
}
void UpdateTopicConfigRequest::setValue(const std::string &value) {
value_ = value;
setParameter(std::string("Value"), value);
}

View 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/alikafka/model/UpdateTopicConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alikafka;
using namespace AlibabaCloud::Alikafka::Model;
UpdateTopicConfigResult::UpdateTopicConfigResult() :
ServiceResult()
{}
UpdateTopicConfigResult::UpdateTopicConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateTopicConfigResult::~UpdateTopicConfigResult()
{}
void UpdateTopicConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stol(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string UpdateTopicConfigResult::getMessage()const
{
return message_;
}
std::string UpdateTopicConfigResult::getData()const
{
return data_;
}
long UpdateTopicConfigResult::getCode()const
{
return code_;
}
bool UpdateTopicConfigResult::getSuccess()const
{
return success_;
}

View File

@@ -25,6 +25,16 @@ UpgradePostPayOrderRequest::UpgradePostPayOrderRequest()
UpgradePostPayOrderRequest::~UpgradePostPayOrderRequest() {}
UpgradePostPayOrderRequest::ServerlessConfig UpgradePostPayOrderRequest::getServerlessConfig() const {
return serverlessConfig_;
}
void UpgradePostPayOrderRequest::setServerlessConfig(const UpgradePostPayOrderRequest::ServerlessConfig &serverlessConfig) {
serverlessConfig_ = serverlessConfig;
setParameter(std::string("ServerlessConfig") + ".ReservedPublishCapacity", std::to_string(serverlessConfig.reservedPublishCapacity));
setParameter(std::string("ServerlessConfig") + ".ReservedSubscribeCapacity", std::to_string(serverlessConfig.reservedSubscribeCapacity));
}
int UpgradePostPayOrderRequest::getDiskSize() const {
return diskSize_;
}

View File

@@ -25,15 +25,6 @@ UpgradePrePayOrderRequest::UpgradePrePayOrderRequest()
UpgradePrePayOrderRequest::~UpgradePrePayOrderRequest() {}
int UpgradePrePayOrderRequest::getDiskSize() const {
return diskSize_;
}
void UpgradePrePayOrderRequest::setDiskSize(int diskSize) {
diskSize_ = diskSize;
setParameter(std::string("DiskSize"), std::to_string(diskSize));
}
int UpgradePrePayOrderRequest::getIoMax() const {
return ioMax_;
}
@@ -52,24 +43,6 @@ void UpgradePrePayOrderRequest::setEipModel(bool eipModel) {
setParameter(std::string("EipModel"), eipModel ? "true" : "false");
}
std::string UpgradePrePayOrderRequest::getIoMaxSpec() const {
return ioMaxSpec_;
}
void UpgradePrePayOrderRequest::setIoMaxSpec(const std::string &ioMaxSpec) {
ioMaxSpec_ = ioMaxSpec;
setParameter(std::string("IoMaxSpec"), ioMaxSpec);
}
int UpgradePrePayOrderRequest::getTopicQuota() const {
return topicQuota_;
}
void UpgradePrePayOrderRequest::setTopicQuota(int topicQuota) {
topicQuota_ = topicQuota;
setParameter(std::string("TopicQuota"), std::to_string(topicQuota));
}
int UpgradePrePayOrderRequest::getEipMax() const {
return eipMax_;
}
@@ -88,15 +61,6 @@ void UpgradePrePayOrderRequest::setSpecType(const std::string &specType) {
setParameter(std::string("SpecType"), specType);
}
std::string UpgradePrePayOrderRequest::getInstanceId() const {
return instanceId_;
}
void UpgradePrePayOrderRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string UpgradePrePayOrderRequest::getRegionId() const {
return regionId_;
}
@@ -106,6 +70,32 @@ void UpgradePrePayOrderRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
UpgradePrePayOrderRequest::ConfluentConfig UpgradePrePayOrderRequest::getConfluentConfig() const {
return confluentConfig_;
}
void UpgradePrePayOrderRequest::setConfluentConfig(const UpgradePrePayOrderRequest::ConfluentConfig &confluentConfig) {
confluentConfig_ = confluentConfig;
setParameter(std::string("ConfluentConfig") + ".KsqlStorage", std::to_string(confluentConfig.ksqlStorage));
setParameter(std::string("ConfluentConfig") + ".ControlCenterStorage", std::to_string(confluentConfig.controlCenterStorage));
setParameter(std::string("ConfluentConfig") + ".KafkaRestProxyReplica", std::to_string(confluentConfig.kafkaRestProxyReplica));
setParameter(std::string("ConfluentConfig") + ".ZooKeeperReplica", std::to_string(confluentConfig.zooKeeperReplica));
setParameter(std::string("ConfluentConfig") + ".ConnectCU", std::to_string(confluentConfig.connectCU));
setParameter(std::string("ConfluentConfig") + ".KafkaReplica", std::to_string(confluentConfig.kafkaReplica));
setParameter(std::string("ConfluentConfig") + ".SchemaRegistryReplica", std::to_string(confluentConfig.schemaRegistryReplica));
setParameter(std::string("ConfluentConfig") + ".KafkaCU", std::to_string(confluentConfig.kafkaCU));
setParameter(std::string("ConfluentConfig") + ".ConnectReplica", std::to_string(confluentConfig.connectReplica));
setParameter(std::string("ConfluentConfig") + ".ControlCenterCU", std::to_string(confluentConfig.controlCenterCU));
setParameter(std::string("ConfluentConfig") + ".KsqlReplica", std::to_string(confluentConfig.ksqlReplica));
setParameter(std::string("ConfluentConfig") + ".ControlCenterReplica", std::to_string(confluentConfig.controlCenterReplica));
setParameter(std::string("ConfluentConfig") + ".KafkaStorage", std::to_string(confluentConfig.kafkaStorage));
setParameter(std::string("ConfluentConfig") + ".ZooKeeperStorage", std::to_string(confluentConfig.zooKeeperStorage));
setParameter(std::string("ConfluentConfig") + ".KsqlCU", std::to_string(confluentConfig.ksqlCU));
setParameter(std::string("ConfluentConfig") + ".SchemaRegistryCU", std::to_string(confluentConfig.schemaRegistryCU));
setParameter(std::string("ConfluentConfig") + ".ZooKeeperCU", std::to_string(confluentConfig.zooKeeperCU));
setParameter(std::string("ConfluentConfig") + ".KafkaRestProxyCU", std::to_string(confluentConfig.kafkaRestProxyCU));
}
int UpgradePrePayOrderRequest::getPartitionNum() const {
return partitionNum_;
}
@@ -115,3 +105,48 @@ void UpgradePrePayOrderRequest::setPartitionNum(int partitionNum) {
setParameter(std::string("PartitionNum"), std::to_string(partitionNum));
}
int UpgradePrePayOrderRequest::getPaidType() const {
return paidType_;
}
void UpgradePrePayOrderRequest::setPaidType(int paidType) {
paidType_ = paidType;
setParameter(std::string("PaidType"), std::to_string(paidType));
}
int UpgradePrePayOrderRequest::getDiskSize() const {
return diskSize_;
}
void UpgradePrePayOrderRequest::setDiskSize(int diskSize) {
diskSize_ = diskSize;
setParameter(std::string("DiskSize"), std::to_string(diskSize));
}
std::string UpgradePrePayOrderRequest::getIoMaxSpec() const {
return ioMaxSpec_;
}
void UpgradePrePayOrderRequest::setIoMaxSpec(const std::string &ioMaxSpec) {
ioMaxSpec_ = ioMaxSpec;
setParameter(std::string("IoMaxSpec"), ioMaxSpec);
}
int UpgradePrePayOrderRequest::getTopicQuota() const {
return topicQuota_;
}
void UpgradePrePayOrderRequest::setTopicQuota(int topicQuota) {
topicQuota_ = topicQuota;
setParameter(std::string("TopicQuota"), std::to_string(topicQuota));
}
std::string UpgradePrePayOrderRequest::getInstanceId() const {
return instanceId_;
}
void UpgradePrePayOrderRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -65,6 +65,8 @@ set(amqp-open_public_header_model
include/alibabacloud/amqp-open/model/ListQueuesResult.h
include/alibabacloud/amqp-open/model/ListVirtualHostsRequest.h
include/alibabacloud/amqp-open/model/ListVirtualHostsResult.h
include/alibabacloud/amqp-open/model/UpdateInstanceRequest.h
include/alibabacloud/amqp-open/model/UpdateInstanceResult.h
include/alibabacloud/amqp-open/model/UpdateInstanceNameRequest.h
include/alibabacloud/amqp-open/model/UpdateInstanceNameResult.h )
@@ -114,6 +116,8 @@ set(amqp-open_src
src/model/ListQueuesResult.cc
src/model/ListVirtualHostsRequest.cc
src/model/ListVirtualHostsResult.cc
src/model/UpdateInstanceRequest.cc
src/model/UpdateInstanceResult.cc
src/model/UpdateInstanceNameRequest.cc
src/model/UpdateInstanceNameResult.cc )

View File

@@ -66,6 +66,8 @@
#include "model/ListQueuesResult.h"
#include "model/ListVirtualHostsRequest.h"
#include "model/ListVirtualHostsResult.h"
#include "model/UpdateInstanceRequest.h"
#include "model/UpdateInstanceResult.h"
#include "model/UpdateInstanceNameRequest.h"
#include "model/UpdateInstanceNameResult.h"
@@ -143,6 +145,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListVirtualHostsResult> ListVirtualHostsOutcome;
typedef std::future<ListVirtualHostsOutcome> ListVirtualHostsOutcomeCallable;
typedef std::function<void(const Amqp_openClient*, const Model::ListVirtualHostsRequest&, const ListVirtualHostsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVirtualHostsAsyncHandler;
typedef Outcome<Error, Model::UpdateInstanceResult> UpdateInstanceOutcome;
typedef std::future<UpdateInstanceOutcome> UpdateInstanceOutcomeCallable;
typedef std::function<void(const Amqp_openClient*, const Model::UpdateInstanceRequest&, const UpdateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceAsyncHandler;
typedef Outcome<Error, Model::UpdateInstanceNameResult> UpdateInstanceNameOutcome;
typedef std::future<UpdateInstanceNameOutcome> UpdateInstanceNameOutcomeCallable;
typedef std::function<void(const Amqp_openClient*, const Model::UpdateInstanceNameRequest&, const UpdateInstanceNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceNameAsyncHandler;
@@ -217,6 +222,9 @@ namespace AlibabaCloud
ListVirtualHostsOutcome listVirtualHosts(const Model::ListVirtualHostsRequest &request)const;
void listVirtualHostsAsync(const Model::ListVirtualHostsRequest& request, const ListVirtualHostsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListVirtualHostsOutcomeCallable listVirtualHostsCallable(const Model::ListVirtualHostsRequest& request) const;
UpdateInstanceOutcome updateInstance(const Model::UpdateInstanceRequest &request)const;
void updateInstanceAsync(const Model::UpdateInstanceRequest& request, const UpdateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateInstanceOutcomeCallable updateInstanceCallable(const Model::UpdateInstanceRequest& request) const;
UpdateInstanceNameOutcome updateInstanceName(const Model::UpdateInstanceNameRequest &request)const;
void updateInstanceNameAsync(const Model::UpdateInstanceNameRequest& request, const UpdateInstanceNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateInstanceNameOutcomeCallable updateInstanceNameCallable(const Model::UpdateInstanceNameRequest& request) const;

View File

@@ -46,12 +46,20 @@ public:
void setMaxConnections(int maxConnections);
bool getSupportTracing() const;
void setSupportTracing(bool supportTracing);
std::string getServerlessChargeType() const;
void setServerlessChargeType(const std::string &serverlessChargeType);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getRenewStatus() const;
void setRenewStatus(const std::string &renewStatus);
int getAutoRenewPeriod() const;
void setAutoRenewPeriod(int autoRenewPeriod);
int getPeriod() const;
void setPeriod(int period);
std::string getRenewalDurationUnit() const;
void setRenewalDurationUnit(const std::string &renewalDurationUnit);
std::string getInstanceName() const;
void setInstanceName(const std::string &instanceName);
bool getAutoRenew() const;
void setAutoRenew(bool autoRenew);
bool getSupportEip() const;
@@ -70,9 +78,13 @@ private:
int tracingStorageTime_;
int maxConnections_;
bool supportTracing_;
std::string serverlessChargeType_;
std::string instanceType_;
std::string renewStatus_;
int autoRenewPeriod_;
int period_;
std::string renewalDurationUnit_;
std::string instanceName_;
bool autoRenew_;
bool supportEip_;
long maxEipTps_;

View File

@@ -0,0 +1,78 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCEREQUEST_H_
#define ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCEREQUEST_H_
#include <alibabacloud/amqp-open/Amqp_openExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Amqp_open {
namespace Model {
class ALIBABACLOUD_AMQP_OPEN_EXPORT UpdateInstanceRequest : public RpcServiceRequest {
public:
UpdateInstanceRequest();
~UpdateInstanceRequest();
long getMaxPrivateTps() const;
void setMaxPrivateTps(long maxPrivateTps);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
int getStorageSize() const;
void setStorageSize(int storageSize);
int getQueueCapacity() const;
void setQueueCapacity(int queueCapacity);
int getTracingStorageTime() const;
void setTracingStorageTime(int tracingStorageTime);
int getMaxConnections() const;
void setMaxConnections(int maxConnections);
bool getSupportTracing() const;
void setSupportTracing(bool supportTracing);
std::string getServerlessChargeType() const;
void setServerlessChargeType(const std::string &serverlessChargeType);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
bool getSupportEip() const;
void setSupportEip(bool supportEip);
std::string getModifyType() const;
void setModifyType(const std::string &modifyType);
long getMaxEipTps() const;
void setMaxEipTps(long maxEipTps);
private:
long maxPrivateTps_;
std::string clientToken_;
int storageSize_;
int queueCapacity_;
int tracingStorageTime_;
int maxConnections_;
bool supportTracing_;
std::string serverlessChargeType_;
std::string instanceType_;
std::string instanceId_;
bool supportEip_;
std::string modifyType_;
long maxEipTps_;
};
} // namespace Model
} // namespace Amqp_open
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCERESULT_H_
#define ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/amqp-open/Amqp_openExport.h>
namespace AlibabaCloud
{
namespace Amqp_open
{
namespace Model
{
class ALIBABACLOUD_AMQP_OPEN_EXPORT UpdateInstanceResult : public ServiceResult
{
public:
UpdateInstanceResult();
explicit UpdateInstanceResult(const std::string &payload);
~UpdateInstanceResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCERESULT_H_

View File

@@ -843,6 +843,42 @@ Amqp_openClient::ListVirtualHostsOutcomeCallable Amqp_openClient::listVirtualHos
return task->get_future();
}
Amqp_openClient::UpdateInstanceOutcome Amqp_openClient::updateInstance(const UpdateInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateInstanceOutcome(UpdateInstanceResult(outcome.result()));
else
return UpdateInstanceOutcome(outcome.error());
}
void Amqp_openClient::updateInstanceAsync(const UpdateInstanceRequest& request, const UpdateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
Amqp_openClient::UpdateInstanceOutcomeCallable Amqp_openClient::updateInstanceCallable(const UpdateInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateInstanceOutcome()>>(
[this, request]()
{
return this->updateInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Amqp_openClient::UpdateInstanceNameOutcome Amqp_openClient::updateInstanceName(const UpdateInstanceNameRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -97,6 +97,15 @@ void CreateInstanceRequest::setSupportTracing(bool supportTracing) {
setParameter(std::string("SupportTracing"), supportTracing ? "true" : "false");
}
std::string CreateInstanceRequest::getServerlessChargeType() const {
return serverlessChargeType_;
}
void CreateInstanceRequest::setServerlessChargeType(const std::string &serverlessChargeType) {
serverlessChargeType_ = serverlessChargeType;
setParameter(std::string("ServerlessChargeType"), serverlessChargeType);
}
std::string CreateInstanceRequest::getInstanceType() const {
return instanceType_;
}
@@ -106,6 +115,15 @@ void CreateInstanceRequest::setInstanceType(const std::string &instanceType) {
setParameter(std::string("InstanceType"), instanceType);
}
std::string CreateInstanceRequest::getRenewStatus() const {
return renewStatus_;
}
void CreateInstanceRequest::setRenewStatus(const std::string &renewStatus) {
renewStatus_ = renewStatus;
setParameter(std::string("RenewStatus"), renewStatus);
}
int CreateInstanceRequest::getAutoRenewPeriod() const {
return autoRenewPeriod_;
}
@@ -124,6 +142,24 @@ void CreateInstanceRequest::setPeriod(int period) {
setParameter(std::string("Period"), std::to_string(period));
}
std::string CreateInstanceRequest::getRenewalDurationUnit() const {
return renewalDurationUnit_;
}
void CreateInstanceRequest::setRenewalDurationUnit(const std::string &renewalDurationUnit) {
renewalDurationUnit_ = renewalDurationUnit;
setParameter(std::string("RenewalDurationUnit"), renewalDurationUnit);
}
std::string CreateInstanceRequest::getInstanceName() const {
return instanceName_;
}
void CreateInstanceRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}
bool CreateInstanceRequest::getAutoRenew() const {
return autoRenew_;
}

View File

@@ -0,0 +1,144 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/amqp-open/model/UpdateInstanceRequest.h>
using AlibabaCloud::Amqp_open::Model::UpdateInstanceRequest;
UpdateInstanceRequest::UpdateInstanceRequest()
: RpcServiceRequest("amqp-open", "2019-12-12", "UpdateInstance") {
setMethod(HttpRequest::Method::Post);
}
UpdateInstanceRequest::~UpdateInstanceRequest() {}
long UpdateInstanceRequest::getMaxPrivateTps() const {
return maxPrivateTps_;
}
void UpdateInstanceRequest::setMaxPrivateTps(long maxPrivateTps) {
maxPrivateTps_ = maxPrivateTps;
setParameter(std::string("MaxPrivateTps"), std::to_string(maxPrivateTps));
}
std::string UpdateInstanceRequest::getClientToken() const {
return clientToken_;
}
void UpdateInstanceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
int UpdateInstanceRequest::getStorageSize() const {
return storageSize_;
}
void UpdateInstanceRequest::setStorageSize(int storageSize) {
storageSize_ = storageSize;
setParameter(std::string("StorageSize"), std::to_string(storageSize));
}
int UpdateInstanceRequest::getQueueCapacity() const {
return queueCapacity_;
}
void UpdateInstanceRequest::setQueueCapacity(int queueCapacity) {
queueCapacity_ = queueCapacity;
setParameter(std::string("QueueCapacity"), std::to_string(queueCapacity));
}
int UpdateInstanceRequest::getTracingStorageTime() const {
return tracingStorageTime_;
}
void UpdateInstanceRequest::setTracingStorageTime(int tracingStorageTime) {
tracingStorageTime_ = tracingStorageTime;
setParameter(std::string("TracingStorageTime"), std::to_string(tracingStorageTime));
}
int UpdateInstanceRequest::getMaxConnections() const {
return maxConnections_;
}
void UpdateInstanceRequest::setMaxConnections(int maxConnections) {
maxConnections_ = maxConnections;
setParameter(std::string("MaxConnections"), std::to_string(maxConnections));
}
bool UpdateInstanceRequest::getSupportTracing() const {
return supportTracing_;
}
void UpdateInstanceRequest::setSupportTracing(bool supportTracing) {
supportTracing_ = supportTracing;
setParameter(std::string("SupportTracing"), supportTracing ? "true" : "false");
}
std::string UpdateInstanceRequest::getServerlessChargeType() const {
return serverlessChargeType_;
}
void UpdateInstanceRequest::setServerlessChargeType(const std::string &serverlessChargeType) {
serverlessChargeType_ = serverlessChargeType;
setParameter(std::string("ServerlessChargeType"), serverlessChargeType);
}
std::string UpdateInstanceRequest::getInstanceType() const {
return instanceType_;
}
void UpdateInstanceRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string UpdateInstanceRequest::getInstanceId() const {
return instanceId_;
}
void UpdateInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
bool UpdateInstanceRequest::getSupportEip() const {
return supportEip_;
}
void UpdateInstanceRequest::setSupportEip(bool supportEip) {
supportEip_ = supportEip;
setParameter(std::string("SupportEip"), supportEip ? "true" : "false");
}
std::string UpdateInstanceRequest::getModifyType() const {
return modifyType_;
}
void UpdateInstanceRequest::setModifyType(const std::string &modifyType) {
modifyType_ = modifyType;
setParameter(std::string("ModifyType"), modifyType);
}
long UpdateInstanceRequest::getMaxEipTps() const {
return maxEipTps_;
}
void UpdateInstanceRequest::setMaxEipTps(long maxEipTps) {
maxEipTps_ = maxEipTps;
setParameter(std::string("MaxEipTps"), std::to_string(maxEipTps));
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/amqp-open/model/UpdateInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Amqp_open;
using namespace AlibabaCloud::Amqp_open::Model;
UpdateInstanceResult::UpdateInstanceResult() :
ServiceResult()
{}
UpdateInstanceResult::UpdateInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateInstanceResult::~UpdateInstanceResult()
{}
void UpdateInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

86
aps/CMakeLists.txt Normal file
View File

@@ -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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(aps_public_header
include/alibabacloud/aps/ApsClient.h
include/alibabacloud/aps/ApsExport.h )
set(aps_public_header_model
include/alibabacloud/aps/model/GetFxCustomerTypeRequest.h
include/alibabacloud/aps/model/GetFxCustomerTypeResult.h )
set(aps_src
src/ApsClient.cc
src/model/GetFxCustomerTypeRequest.cc
src/model/GetFxCustomerTypeResult.cc )
add_library(aps ${LIB_TYPE}
${aps_public_header}
${aps_public_header_model}
${aps_src})
set_target_properties(aps
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}aps
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(aps
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_APS_LIBRARY)
endif()
target_include_directories(aps
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(aps
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(aps
jsoncpp)
target_include_directories(aps
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(aps
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(aps
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(aps
PRIVATE /usr/include/jsoncpp)
target_link_libraries(aps
jsoncpp)
endif()
install(FILES ${aps_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aps)
install(FILES ${aps_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aps/model)
install(TARGETS aps
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View 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_APS_APSCLIENT_H_
#define ALIBABACLOUD_APS_APSCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "ApsExport.h"
#include "model/GetFxCustomerTypeRequest.h"
#include "model/GetFxCustomerTypeResult.h"
namespace AlibabaCloud
{
namespace Aps
{
class ALIBABACLOUD_APS_EXPORT ApsClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::GetFxCustomerTypeResult> GetFxCustomerTypeOutcome;
typedef std::future<GetFxCustomerTypeOutcome> GetFxCustomerTypeOutcomeCallable;
typedef std::function<void(const ApsClient*, const Model::GetFxCustomerTypeRequest&, const GetFxCustomerTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFxCustomerTypeAsyncHandler;
ApsClient(const Credentials &credentials, const ClientConfiguration &configuration);
ApsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
ApsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~ApsClient();
GetFxCustomerTypeOutcome getFxCustomerType(const Model::GetFxCustomerTypeRequest &request)const;
void getFxCustomerTypeAsync(const Model::GetFxCustomerTypeRequest& request, const GetFxCustomerTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFxCustomerTypeOutcomeCallable getFxCustomerTypeCallable(const Model::GetFxCustomerTypeRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_APS_APSCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_APS_APSEXPORT_H_
#define ALIBABACLOUD_APS_APSEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_APS_LIBRARY)
# define ALIBABACLOUD_APS_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_APS_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_APS_EXPORT
#endif
#endif // !ALIBABACLOUD_APS_APSEXPORT_H_

View File

@@ -0,0 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_APS_MODEL_GETFXCUSTOMERTYPEREQUEST_H_
#define ALIBABACLOUD_APS_MODEL_GETFXCUSTOMERTYPEREQUEST_H_
#include <alibabacloud/aps/ApsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Aps {
namespace Model {
class ALIBABACLOUD_APS_EXPORT GetFxCustomerTypeRequest : public RpcServiceRequest {
public:
GetFxCustomerTypeRequest();
~GetFxCustomerTypeRequest();
long getUid() const;
void setUid(long uid);
private:
long uid_;
};
} // namespace Model
} // namespace Aps
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_APS_MODEL_GETFXCUSTOMERTYPEREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_APS_MODEL_GETFXCUSTOMERTYPERESULT_H_
#define ALIBABACLOUD_APS_MODEL_GETFXCUSTOMERTYPERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/aps/ApsExport.h>
namespace AlibabaCloud
{
namespace Aps
{
namespace Model
{
class ALIBABACLOUD_APS_EXPORT GetFxCustomerTypeResult : public ServiceResult
{
public:
struct Data
{
long parentId;
int isSub;
int customerType;
};
GetFxCustomerTypeResult();
explicit GetFxCustomerTypeResult(const std::string &payload);
~GetFxCustomerTypeResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_APS_MODEL_GETFXCUSTOMERTYPERESULT_H_

89
aps/src/ApsClient.cc Normal file
View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/aps/ApsClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Aps;
using namespace AlibabaCloud::Aps::Model;
namespace
{
const std::string SERVICE_NAME = "aps";
}
ApsClient::ApsClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
ApsClient::ApsClient(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, "");
}
ApsClient::ApsClient(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, "");
}
ApsClient::~ApsClient()
{}
ApsClient::GetFxCustomerTypeOutcome ApsClient::getFxCustomerType(const GetFxCustomerTypeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetFxCustomerTypeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetFxCustomerTypeOutcome(GetFxCustomerTypeResult(outcome.result()));
else
return GetFxCustomerTypeOutcome(outcome.error());
}
void ApsClient::getFxCustomerTypeAsync(const GetFxCustomerTypeRequest& request, const GetFxCustomerTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getFxCustomerType(request), context);
};
asyncExecute(new Runnable(fn));
}
ApsClient::GetFxCustomerTypeOutcomeCallable ApsClient::getFxCustomerTypeCallable(const GetFxCustomerTypeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetFxCustomerTypeOutcome()>>(
[this, request]()
{
return this->getFxCustomerType(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,36 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/aps/model/GetFxCustomerTypeRequest.h>
using AlibabaCloud::Aps::Model::GetFxCustomerTypeRequest;
GetFxCustomerTypeRequest::GetFxCustomerTypeRequest()
: RpcServiceRequest("aps", "2024-03-25", "GetFxCustomerType") {
setMethod(HttpRequest::Method::Post);
}
GetFxCustomerTypeRequest::~GetFxCustomerTypeRequest() {}
long GetFxCustomerTypeRequest::getUid() const {
return uid_;
}
void GetFxCustomerTypeRequest::setUid(long uid) {
uid_ = uid;
setParameter(std::string("Uid"), std::to_string(uid));
}

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/aps/model/GetFxCustomerTypeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aps;
using namespace AlibabaCloud::Aps::Model;
GetFxCustomerTypeResult::GetFxCustomerTypeResult() :
ServiceResult()
{}
GetFxCustomerTypeResult::GetFxCustomerTypeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFxCustomerTypeResult::~GetFxCustomerTypeResult()
{}
void GetFxCustomerTypeResult::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["ParentId"].isNull())
data_.parentId = std::stol(dataNode["ParentId"].asString());
if(!dataNode["IsSub"].isNull())
data_.isSub = std::stoi(dataNode["IsSub"].asString());
if(!dataNode["CustomerType"].isNull())
data_.customerType = std::stoi(dataNode["CustomerType"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetFxCustomerTypeResult::getMessage()const
{
return message_;
}
GetFxCustomerTypeResult::Data GetFxCustomerTypeResult::getData()const
{
return data_;
}
std::string GetFxCustomerTypeResult::getCode()const
{
return code_;
}
bool GetFxCustomerTypeResult::getSuccess()const
{
return success_;
}

View File

@@ -47,8 +47,18 @@ set(cams_public_header_model
include/alibabacloud/cams/model/CreateChatappMigrationInitiateResult.h
include/alibabacloud/cams/model/CreateChatappTemplateRequest.h
include/alibabacloud/cams/model/CreateChatappTemplateResult.h
include/alibabacloud/cams/model/CreateFlowRequest.h
include/alibabacloud/cams/model/CreateFlowResult.h
include/alibabacloud/cams/model/CreatePhoneMessageQrdlRequest.h
include/alibabacloud/cams/model/CreatePhoneMessageQrdlResult.h
include/alibabacloud/cams/model/DeleteChatappTemplateRequest.h
include/alibabacloud/cams/model/DeleteChatappTemplateResult.h
include/alibabacloud/cams/model/DeleteFlowRequest.h
include/alibabacloud/cams/model/DeleteFlowResult.h
include/alibabacloud/cams/model/DeletePhoneMessageQrdlRequest.h
include/alibabacloud/cams/model/DeletePhoneMessageQrdlResult.h
include/alibabacloud/cams/model/DeprecateFlowRequest.h
include/alibabacloud/cams/model/DeprecateFlowResult.h
include/alibabacloud/cams/model/EnableWhatsappROIMetricRequest.h
include/alibabacloud/cams/model/EnableWhatsappROIMetricResult.h
include/alibabacloud/cams/model/GetChatappPhoneNumberMetricRequest.h
@@ -63,8 +73,18 @@ set(cams_public_header_model
include/alibabacloud/cams/model/GetChatappVerifyCodeResult.h
include/alibabacloud/cams/model/GetCommerceSettingRequest.h
include/alibabacloud/cams/model/GetCommerceSettingResult.h
include/alibabacloud/cams/model/GetFlowRequest.h
include/alibabacloud/cams/model/GetFlowResult.h
include/alibabacloud/cams/model/GetFlowJSONAssestRequest.h
include/alibabacloud/cams/model/GetFlowJSONAssestResult.h
include/alibabacloud/cams/model/GetFlowPreviewUrlRequest.h
include/alibabacloud/cams/model/GetFlowPreviewUrlResult.h
include/alibabacloud/cams/model/GetMigrationVerifyCodeRequest.h
include/alibabacloud/cams/model/GetMigrationVerifyCodeResult.h
include/alibabacloud/cams/model/GetPermissionByCodeRequest.h
include/alibabacloud/cams/model/GetPermissionByCodeResult.h
include/alibabacloud/cams/model/GetPhoneEncryptionPublicKeyRequest.h
include/alibabacloud/cams/model/GetPhoneEncryptionPublicKeyResult.h
include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusRequest.h
include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusResult.h
include/alibabacloud/cams/model/GetPreValidatePhoneIdRequest.h
@@ -75,14 +95,22 @@ set(cams_public_header_model
include/alibabacloud/cams/model/IsvGetAppIdResult.h
include/alibabacloud/cams/model/ListChatappTemplateRequest.h
include/alibabacloud/cams/model/ListChatappTemplateResult.h
include/alibabacloud/cams/model/ListFlowRequest.h
include/alibabacloud/cams/model/ListFlowResult.h
include/alibabacloud/cams/model/ListPhoneMessageQrdlRequest.h
include/alibabacloud/cams/model/ListPhoneMessageQrdlResult.h
include/alibabacloud/cams/model/ListProductRequest.h
include/alibabacloud/cams/model/ListProductResult.h
include/alibabacloud/cams/model/ListProductCatalogRequest.h
include/alibabacloud/cams/model/ListProductCatalogResult.h
include/alibabacloud/cams/model/ModifyChatappTemplateRequest.h
include/alibabacloud/cams/model/ModifyChatappTemplateResult.h
include/alibabacloud/cams/model/ModifyFlowRequest.h
include/alibabacloud/cams/model/ModifyFlowResult.h
include/alibabacloud/cams/model/ModifyPhoneBusinessProfileRequest.h
include/alibabacloud/cams/model/ModifyPhoneBusinessProfileResult.h
include/alibabacloud/cams/model/PublishFlowRequest.h
include/alibabacloud/cams/model/PublishFlowResult.h
include/alibabacloud/cams/model/QueryChatappBindWabaRequest.h
include/alibabacloud/cams/model/QueryChatappBindWabaResult.h
include/alibabacloud/cams/model/QueryChatappPhoneNumbersRequest.h
@@ -101,6 +129,12 @@ set(cams_public_header_model
include/alibabacloud/cams/model/UpdateAccountWebhookResult.h
include/alibabacloud/cams/model/UpdateCommerceSettingRequest.h
include/alibabacloud/cams/model/UpdateCommerceSettingResult.h
include/alibabacloud/cams/model/UpdateFlowJSONAssetRequest.h
include/alibabacloud/cams/model/UpdateFlowJSONAssetResult.h
include/alibabacloud/cams/model/UpdatePhoneEncryptionPublicKeyRequest.h
include/alibabacloud/cams/model/UpdatePhoneEncryptionPublicKeyResult.h
include/alibabacloud/cams/model/UpdatePhoneMessageQrdlRequest.h
include/alibabacloud/cams/model/UpdatePhoneMessageQrdlResult.h
include/alibabacloud/cams/model/UpdatePhoneWebhookRequest.h
include/alibabacloud/cams/model/UpdatePhoneWebhookResult.h )
@@ -132,8 +166,18 @@ set(cams_src
src/model/CreateChatappMigrationInitiateResult.cc
src/model/CreateChatappTemplateRequest.cc
src/model/CreateChatappTemplateResult.cc
src/model/CreateFlowRequest.cc
src/model/CreateFlowResult.cc
src/model/CreatePhoneMessageQrdlRequest.cc
src/model/CreatePhoneMessageQrdlResult.cc
src/model/DeleteChatappTemplateRequest.cc
src/model/DeleteChatappTemplateResult.cc
src/model/DeleteFlowRequest.cc
src/model/DeleteFlowResult.cc
src/model/DeletePhoneMessageQrdlRequest.cc
src/model/DeletePhoneMessageQrdlResult.cc
src/model/DeprecateFlowRequest.cc
src/model/DeprecateFlowResult.cc
src/model/EnableWhatsappROIMetricRequest.cc
src/model/EnableWhatsappROIMetricResult.cc
src/model/GetChatappPhoneNumberMetricRequest.cc
@@ -148,8 +192,18 @@ set(cams_src
src/model/GetChatappVerifyCodeResult.cc
src/model/GetCommerceSettingRequest.cc
src/model/GetCommerceSettingResult.cc
src/model/GetFlowRequest.cc
src/model/GetFlowResult.cc
src/model/GetFlowJSONAssestRequest.cc
src/model/GetFlowJSONAssestResult.cc
src/model/GetFlowPreviewUrlRequest.cc
src/model/GetFlowPreviewUrlResult.cc
src/model/GetMigrationVerifyCodeRequest.cc
src/model/GetMigrationVerifyCodeResult.cc
src/model/GetPermissionByCodeRequest.cc
src/model/GetPermissionByCodeResult.cc
src/model/GetPhoneEncryptionPublicKeyRequest.cc
src/model/GetPhoneEncryptionPublicKeyResult.cc
src/model/GetPhoneNumberVerificationStatusRequest.cc
src/model/GetPhoneNumberVerificationStatusResult.cc
src/model/GetPreValidatePhoneIdRequest.cc
@@ -160,14 +214,22 @@ set(cams_src
src/model/IsvGetAppIdResult.cc
src/model/ListChatappTemplateRequest.cc
src/model/ListChatappTemplateResult.cc
src/model/ListFlowRequest.cc
src/model/ListFlowResult.cc
src/model/ListPhoneMessageQrdlRequest.cc
src/model/ListPhoneMessageQrdlResult.cc
src/model/ListProductRequest.cc
src/model/ListProductResult.cc
src/model/ListProductCatalogRequest.cc
src/model/ListProductCatalogResult.cc
src/model/ModifyChatappTemplateRequest.cc
src/model/ModifyChatappTemplateResult.cc
src/model/ModifyFlowRequest.cc
src/model/ModifyFlowResult.cc
src/model/ModifyPhoneBusinessProfileRequest.cc
src/model/ModifyPhoneBusinessProfileResult.cc
src/model/PublishFlowRequest.cc
src/model/PublishFlowResult.cc
src/model/QueryChatappBindWabaRequest.cc
src/model/QueryChatappBindWabaResult.cc
src/model/QueryChatappPhoneNumbersRequest.cc
@@ -186,6 +248,12 @@ set(cams_src
src/model/UpdateAccountWebhookResult.cc
src/model/UpdateCommerceSettingRequest.cc
src/model/UpdateCommerceSettingResult.cc
src/model/UpdateFlowJSONAssetRequest.cc
src/model/UpdateFlowJSONAssetResult.cc
src/model/UpdatePhoneEncryptionPublicKeyRequest.cc
src/model/UpdatePhoneEncryptionPublicKeyResult.cc
src/model/UpdatePhoneMessageQrdlRequest.cc
src/model/UpdatePhoneMessageQrdlResult.cc
src/model/UpdatePhoneWebhookRequest.cc
src/model/UpdatePhoneWebhookResult.cc )

View File

@@ -48,8 +48,18 @@
#include "model/CreateChatappMigrationInitiateResult.h"
#include "model/CreateChatappTemplateRequest.h"
#include "model/CreateChatappTemplateResult.h"
#include "model/CreateFlowRequest.h"
#include "model/CreateFlowResult.h"
#include "model/CreatePhoneMessageQrdlRequest.h"
#include "model/CreatePhoneMessageQrdlResult.h"
#include "model/DeleteChatappTemplateRequest.h"
#include "model/DeleteChatappTemplateResult.h"
#include "model/DeleteFlowRequest.h"
#include "model/DeleteFlowResult.h"
#include "model/DeletePhoneMessageQrdlRequest.h"
#include "model/DeletePhoneMessageQrdlResult.h"
#include "model/DeprecateFlowRequest.h"
#include "model/DeprecateFlowResult.h"
#include "model/EnableWhatsappROIMetricRequest.h"
#include "model/EnableWhatsappROIMetricResult.h"
#include "model/GetChatappPhoneNumberMetricRequest.h"
@@ -64,8 +74,18 @@
#include "model/GetChatappVerifyCodeResult.h"
#include "model/GetCommerceSettingRequest.h"
#include "model/GetCommerceSettingResult.h"
#include "model/GetFlowRequest.h"
#include "model/GetFlowResult.h"
#include "model/GetFlowJSONAssestRequest.h"
#include "model/GetFlowJSONAssestResult.h"
#include "model/GetFlowPreviewUrlRequest.h"
#include "model/GetFlowPreviewUrlResult.h"
#include "model/GetMigrationVerifyCodeRequest.h"
#include "model/GetMigrationVerifyCodeResult.h"
#include "model/GetPermissionByCodeRequest.h"
#include "model/GetPermissionByCodeResult.h"
#include "model/GetPhoneEncryptionPublicKeyRequest.h"
#include "model/GetPhoneEncryptionPublicKeyResult.h"
#include "model/GetPhoneNumberVerificationStatusRequest.h"
#include "model/GetPhoneNumberVerificationStatusResult.h"
#include "model/GetPreValidatePhoneIdRequest.h"
@@ -76,14 +96,22 @@
#include "model/IsvGetAppIdResult.h"
#include "model/ListChatappTemplateRequest.h"
#include "model/ListChatappTemplateResult.h"
#include "model/ListFlowRequest.h"
#include "model/ListFlowResult.h"
#include "model/ListPhoneMessageQrdlRequest.h"
#include "model/ListPhoneMessageQrdlResult.h"
#include "model/ListProductRequest.h"
#include "model/ListProductResult.h"
#include "model/ListProductCatalogRequest.h"
#include "model/ListProductCatalogResult.h"
#include "model/ModifyChatappTemplateRequest.h"
#include "model/ModifyChatappTemplateResult.h"
#include "model/ModifyFlowRequest.h"
#include "model/ModifyFlowResult.h"
#include "model/ModifyPhoneBusinessProfileRequest.h"
#include "model/ModifyPhoneBusinessProfileResult.h"
#include "model/PublishFlowRequest.h"
#include "model/PublishFlowResult.h"
#include "model/QueryChatappBindWabaRequest.h"
#include "model/QueryChatappBindWabaResult.h"
#include "model/QueryChatappPhoneNumbersRequest.h"
@@ -102,6 +130,12 @@
#include "model/UpdateAccountWebhookResult.h"
#include "model/UpdateCommerceSettingRequest.h"
#include "model/UpdateCommerceSettingResult.h"
#include "model/UpdateFlowJSONAssetRequest.h"
#include "model/UpdateFlowJSONAssetResult.h"
#include "model/UpdatePhoneEncryptionPublicKeyRequest.h"
#include "model/UpdatePhoneEncryptionPublicKeyResult.h"
#include "model/UpdatePhoneMessageQrdlRequest.h"
#include "model/UpdatePhoneMessageQrdlResult.h"
#include "model/UpdatePhoneWebhookRequest.h"
#include "model/UpdatePhoneWebhookResult.h"
@@ -152,9 +186,24 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateChatappTemplateResult> CreateChatappTemplateOutcome;
typedef std::future<CreateChatappTemplateOutcome> CreateChatappTemplateOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::CreateChatappTemplateRequest&, const CreateChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateChatappTemplateAsyncHandler;
typedef Outcome<Error, Model::CreateFlowResult> CreateFlowOutcome;
typedef std::future<CreateFlowOutcome> CreateFlowOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::CreateFlowRequest&, const CreateFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFlowAsyncHandler;
typedef Outcome<Error, Model::CreatePhoneMessageQrdlResult> CreatePhoneMessageQrdlOutcome;
typedef std::future<CreatePhoneMessageQrdlOutcome> CreatePhoneMessageQrdlOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::CreatePhoneMessageQrdlRequest&, const CreatePhoneMessageQrdlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePhoneMessageQrdlAsyncHandler;
typedef Outcome<Error, Model::DeleteChatappTemplateResult> DeleteChatappTemplateOutcome;
typedef std::future<DeleteChatappTemplateOutcome> DeleteChatappTemplateOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::DeleteChatappTemplateRequest&, const DeleteChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteChatappTemplateAsyncHandler;
typedef Outcome<Error, Model::DeleteFlowResult> DeleteFlowOutcome;
typedef std::future<DeleteFlowOutcome> DeleteFlowOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::DeleteFlowRequest&, const DeleteFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFlowAsyncHandler;
typedef Outcome<Error, Model::DeletePhoneMessageQrdlResult> DeletePhoneMessageQrdlOutcome;
typedef std::future<DeletePhoneMessageQrdlOutcome> DeletePhoneMessageQrdlOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::DeletePhoneMessageQrdlRequest&, const DeletePhoneMessageQrdlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePhoneMessageQrdlAsyncHandler;
typedef Outcome<Error, Model::DeprecateFlowResult> DeprecateFlowOutcome;
typedef std::future<DeprecateFlowOutcome> DeprecateFlowOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::DeprecateFlowRequest&, const DeprecateFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeprecateFlowAsyncHandler;
typedef Outcome<Error, Model::EnableWhatsappROIMetricResult> EnableWhatsappROIMetricOutcome;
typedef std::future<EnableWhatsappROIMetricOutcome> EnableWhatsappROIMetricOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::EnableWhatsappROIMetricRequest&, const EnableWhatsappROIMetricOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableWhatsappROIMetricAsyncHandler;
@@ -176,9 +225,24 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetCommerceSettingResult> GetCommerceSettingOutcome;
typedef std::future<GetCommerceSettingOutcome> GetCommerceSettingOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetCommerceSettingRequest&, const GetCommerceSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCommerceSettingAsyncHandler;
typedef Outcome<Error, Model::GetFlowResult> GetFlowOutcome;
typedef std::future<GetFlowOutcome> GetFlowOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetFlowRequest&, const GetFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFlowAsyncHandler;
typedef Outcome<Error, Model::GetFlowJSONAssestResult> GetFlowJSONAssestOutcome;
typedef std::future<GetFlowJSONAssestOutcome> GetFlowJSONAssestOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetFlowJSONAssestRequest&, const GetFlowJSONAssestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFlowJSONAssestAsyncHandler;
typedef Outcome<Error, Model::GetFlowPreviewUrlResult> GetFlowPreviewUrlOutcome;
typedef std::future<GetFlowPreviewUrlOutcome> GetFlowPreviewUrlOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetFlowPreviewUrlRequest&, const GetFlowPreviewUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFlowPreviewUrlAsyncHandler;
typedef Outcome<Error, Model::GetMigrationVerifyCodeResult> GetMigrationVerifyCodeOutcome;
typedef std::future<GetMigrationVerifyCodeOutcome> GetMigrationVerifyCodeOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetMigrationVerifyCodeRequest&, const GetMigrationVerifyCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMigrationVerifyCodeAsyncHandler;
typedef Outcome<Error, Model::GetPermissionByCodeResult> GetPermissionByCodeOutcome;
typedef std::future<GetPermissionByCodeOutcome> GetPermissionByCodeOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetPermissionByCodeRequest&, const GetPermissionByCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPermissionByCodeAsyncHandler;
typedef Outcome<Error, Model::GetPhoneEncryptionPublicKeyResult> GetPhoneEncryptionPublicKeyOutcome;
typedef std::future<GetPhoneEncryptionPublicKeyOutcome> GetPhoneEncryptionPublicKeyOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetPhoneEncryptionPublicKeyRequest&, const GetPhoneEncryptionPublicKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhoneEncryptionPublicKeyAsyncHandler;
typedef Outcome<Error, Model::GetPhoneNumberVerificationStatusResult> GetPhoneNumberVerificationStatusOutcome;
typedef std::future<GetPhoneNumberVerificationStatusOutcome> GetPhoneNumberVerificationStatusOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetPhoneNumberVerificationStatusRequest&, const GetPhoneNumberVerificationStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhoneNumberVerificationStatusAsyncHandler;
@@ -194,6 +258,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListChatappTemplateResult> ListChatappTemplateOutcome;
typedef std::future<ListChatappTemplateOutcome> ListChatappTemplateOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ListChatappTemplateRequest&, const ListChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListChatappTemplateAsyncHandler;
typedef Outcome<Error, Model::ListFlowResult> ListFlowOutcome;
typedef std::future<ListFlowOutcome> ListFlowOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ListFlowRequest&, const ListFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFlowAsyncHandler;
typedef Outcome<Error, Model::ListPhoneMessageQrdlResult> ListPhoneMessageQrdlOutcome;
typedef std::future<ListPhoneMessageQrdlOutcome> ListPhoneMessageQrdlOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ListPhoneMessageQrdlRequest&, const ListPhoneMessageQrdlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhoneMessageQrdlAsyncHandler;
typedef Outcome<Error, Model::ListProductResult> ListProductOutcome;
typedef std::future<ListProductOutcome> ListProductOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ListProductRequest&, const ListProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProductAsyncHandler;
@@ -203,9 +273,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyChatappTemplateResult> ModifyChatappTemplateOutcome;
typedef std::future<ModifyChatappTemplateOutcome> ModifyChatappTemplateOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ModifyChatappTemplateRequest&, const ModifyChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyChatappTemplateAsyncHandler;
typedef Outcome<Error, Model::ModifyFlowResult> ModifyFlowOutcome;
typedef std::future<ModifyFlowOutcome> ModifyFlowOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ModifyFlowRequest&, const ModifyFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyFlowAsyncHandler;
typedef Outcome<Error, Model::ModifyPhoneBusinessProfileResult> ModifyPhoneBusinessProfileOutcome;
typedef std::future<ModifyPhoneBusinessProfileOutcome> ModifyPhoneBusinessProfileOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ModifyPhoneBusinessProfileRequest&, const ModifyPhoneBusinessProfileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPhoneBusinessProfileAsyncHandler;
typedef Outcome<Error, Model::PublishFlowResult> PublishFlowOutcome;
typedef std::future<PublishFlowOutcome> PublishFlowOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::PublishFlowRequest&, const PublishFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishFlowAsyncHandler;
typedef Outcome<Error, Model::QueryChatappBindWabaResult> QueryChatappBindWabaOutcome;
typedef std::future<QueryChatappBindWabaOutcome> QueryChatappBindWabaOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::QueryChatappBindWabaRequest&, const QueryChatappBindWabaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryChatappBindWabaAsyncHandler;
@@ -233,6 +309,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateCommerceSettingResult> UpdateCommerceSettingOutcome;
typedef std::future<UpdateCommerceSettingOutcome> UpdateCommerceSettingOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdateCommerceSettingRequest&, const UpdateCommerceSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCommerceSettingAsyncHandler;
typedef Outcome<Error, Model::UpdateFlowJSONAssetResult> UpdateFlowJSONAssetOutcome;
typedef std::future<UpdateFlowJSONAssetOutcome> UpdateFlowJSONAssetOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdateFlowJSONAssetRequest&, const UpdateFlowJSONAssetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFlowJSONAssetAsyncHandler;
typedef Outcome<Error, Model::UpdatePhoneEncryptionPublicKeyResult> UpdatePhoneEncryptionPublicKeyOutcome;
typedef std::future<UpdatePhoneEncryptionPublicKeyOutcome> UpdatePhoneEncryptionPublicKeyOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdatePhoneEncryptionPublicKeyRequest&, const UpdatePhoneEncryptionPublicKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePhoneEncryptionPublicKeyAsyncHandler;
typedef Outcome<Error, Model::UpdatePhoneMessageQrdlResult> UpdatePhoneMessageQrdlOutcome;
typedef std::future<UpdatePhoneMessageQrdlOutcome> UpdatePhoneMessageQrdlOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdatePhoneMessageQrdlRequest&, const UpdatePhoneMessageQrdlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePhoneMessageQrdlAsyncHandler;
typedef Outcome<Error, Model::UpdatePhoneWebhookResult> UpdatePhoneWebhookOutcome;
typedef std::future<UpdatePhoneWebhookOutcome> UpdatePhoneWebhookOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdatePhoneWebhookRequest&, const UpdatePhoneWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePhoneWebhookAsyncHandler;
@@ -280,9 +365,24 @@ namespace AlibabaCloud
CreateChatappTemplateOutcome createChatappTemplate(const Model::CreateChatappTemplateRequest &request)const;
void createChatappTemplateAsync(const Model::CreateChatappTemplateRequest& request, const CreateChatappTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateChatappTemplateOutcomeCallable createChatappTemplateCallable(const Model::CreateChatappTemplateRequest& request) const;
CreateFlowOutcome createFlow(const Model::CreateFlowRequest &request)const;
void createFlowAsync(const Model::CreateFlowRequest& request, const CreateFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFlowOutcomeCallable createFlowCallable(const Model::CreateFlowRequest& request) const;
CreatePhoneMessageQrdlOutcome createPhoneMessageQrdl(const Model::CreatePhoneMessageQrdlRequest &request)const;
void createPhoneMessageQrdlAsync(const Model::CreatePhoneMessageQrdlRequest& request, const CreatePhoneMessageQrdlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePhoneMessageQrdlOutcomeCallable createPhoneMessageQrdlCallable(const Model::CreatePhoneMessageQrdlRequest& request) const;
DeleteChatappTemplateOutcome deleteChatappTemplate(const Model::DeleteChatappTemplateRequest &request)const;
void deleteChatappTemplateAsync(const Model::DeleteChatappTemplateRequest& request, const DeleteChatappTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteChatappTemplateOutcomeCallable deleteChatappTemplateCallable(const Model::DeleteChatappTemplateRequest& request) const;
DeleteFlowOutcome deleteFlow(const Model::DeleteFlowRequest &request)const;
void deleteFlowAsync(const Model::DeleteFlowRequest& request, const DeleteFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteFlowOutcomeCallable deleteFlowCallable(const Model::DeleteFlowRequest& request) const;
DeletePhoneMessageQrdlOutcome deletePhoneMessageQrdl(const Model::DeletePhoneMessageQrdlRequest &request)const;
void deletePhoneMessageQrdlAsync(const Model::DeletePhoneMessageQrdlRequest& request, const DeletePhoneMessageQrdlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePhoneMessageQrdlOutcomeCallable deletePhoneMessageQrdlCallable(const Model::DeletePhoneMessageQrdlRequest& request) const;
DeprecateFlowOutcome deprecateFlow(const Model::DeprecateFlowRequest &request)const;
void deprecateFlowAsync(const Model::DeprecateFlowRequest& request, const DeprecateFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeprecateFlowOutcomeCallable deprecateFlowCallable(const Model::DeprecateFlowRequest& request) const;
EnableWhatsappROIMetricOutcome enableWhatsappROIMetric(const Model::EnableWhatsappROIMetricRequest &request)const;
void enableWhatsappROIMetricAsync(const Model::EnableWhatsappROIMetricRequest& request, const EnableWhatsappROIMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableWhatsappROIMetricOutcomeCallable enableWhatsappROIMetricCallable(const Model::EnableWhatsappROIMetricRequest& request) const;
@@ -304,9 +404,24 @@ namespace AlibabaCloud
GetCommerceSettingOutcome getCommerceSetting(const Model::GetCommerceSettingRequest &request)const;
void getCommerceSettingAsync(const Model::GetCommerceSettingRequest& request, const GetCommerceSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCommerceSettingOutcomeCallable getCommerceSettingCallable(const Model::GetCommerceSettingRequest& request) const;
GetFlowOutcome getFlow(const Model::GetFlowRequest &request)const;
void getFlowAsync(const Model::GetFlowRequest& request, const GetFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFlowOutcomeCallable getFlowCallable(const Model::GetFlowRequest& request) const;
GetFlowJSONAssestOutcome getFlowJSONAssest(const Model::GetFlowJSONAssestRequest &request)const;
void getFlowJSONAssestAsync(const Model::GetFlowJSONAssestRequest& request, const GetFlowJSONAssestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFlowJSONAssestOutcomeCallable getFlowJSONAssestCallable(const Model::GetFlowJSONAssestRequest& request) const;
GetFlowPreviewUrlOutcome getFlowPreviewUrl(const Model::GetFlowPreviewUrlRequest &request)const;
void getFlowPreviewUrlAsync(const Model::GetFlowPreviewUrlRequest& request, const GetFlowPreviewUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFlowPreviewUrlOutcomeCallable getFlowPreviewUrlCallable(const Model::GetFlowPreviewUrlRequest& request) const;
GetMigrationVerifyCodeOutcome getMigrationVerifyCode(const Model::GetMigrationVerifyCodeRequest &request)const;
void getMigrationVerifyCodeAsync(const Model::GetMigrationVerifyCodeRequest& request, const GetMigrationVerifyCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMigrationVerifyCodeOutcomeCallable getMigrationVerifyCodeCallable(const Model::GetMigrationVerifyCodeRequest& request) const;
GetPermissionByCodeOutcome getPermissionByCode(const Model::GetPermissionByCodeRequest &request)const;
void getPermissionByCodeAsync(const Model::GetPermissionByCodeRequest& request, const GetPermissionByCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPermissionByCodeOutcomeCallable getPermissionByCodeCallable(const Model::GetPermissionByCodeRequest& request) const;
GetPhoneEncryptionPublicKeyOutcome getPhoneEncryptionPublicKey(const Model::GetPhoneEncryptionPublicKeyRequest &request)const;
void getPhoneEncryptionPublicKeyAsync(const Model::GetPhoneEncryptionPublicKeyRequest& request, const GetPhoneEncryptionPublicKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPhoneEncryptionPublicKeyOutcomeCallable getPhoneEncryptionPublicKeyCallable(const Model::GetPhoneEncryptionPublicKeyRequest& request) const;
GetPhoneNumberVerificationStatusOutcome getPhoneNumberVerificationStatus(const Model::GetPhoneNumberVerificationStatusRequest &request)const;
void getPhoneNumberVerificationStatusAsync(const Model::GetPhoneNumberVerificationStatusRequest& request, const GetPhoneNumberVerificationStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPhoneNumberVerificationStatusOutcomeCallable getPhoneNumberVerificationStatusCallable(const Model::GetPhoneNumberVerificationStatusRequest& request) const;
@@ -322,6 +437,12 @@ namespace AlibabaCloud
ListChatappTemplateOutcome listChatappTemplate(const Model::ListChatappTemplateRequest &request)const;
void listChatappTemplateAsync(const Model::ListChatappTemplateRequest& request, const ListChatappTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListChatappTemplateOutcomeCallable listChatappTemplateCallable(const Model::ListChatappTemplateRequest& request) const;
ListFlowOutcome listFlow(const Model::ListFlowRequest &request)const;
void listFlowAsync(const Model::ListFlowRequest& request, const ListFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListFlowOutcomeCallable listFlowCallable(const Model::ListFlowRequest& request) const;
ListPhoneMessageQrdlOutcome listPhoneMessageQrdl(const Model::ListPhoneMessageQrdlRequest &request)const;
void listPhoneMessageQrdlAsync(const Model::ListPhoneMessageQrdlRequest& request, const ListPhoneMessageQrdlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPhoneMessageQrdlOutcomeCallable listPhoneMessageQrdlCallable(const Model::ListPhoneMessageQrdlRequest& request) const;
ListProductOutcome listProduct(const Model::ListProductRequest &request)const;
void listProductAsync(const Model::ListProductRequest& request, const ListProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListProductOutcomeCallable listProductCallable(const Model::ListProductRequest& request) const;
@@ -331,9 +452,15 @@ namespace AlibabaCloud
ModifyChatappTemplateOutcome modifyChatappTemplate(const Model::ModifyChatappTemplateRequest &request)const;
void modifyChatappTemplateAsync(const Model::ModifyChatappTemplateRequest& request, const ModifyChatappTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyChatappTemplateOutcomeCallable modifyChatappTemplateCallable(const Model::ModifyChatappTemplateRequest& request) const;
ModifyFlowOutcome modifyFlow(const Model::ModifyFlowRequest &request)const;
void modifyFlowAsync(const Model::ModifyFlowRequest& request, const ModifyFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyFlowOutcomeCallable modifyFlowCallable(const Model::ModifyFlowRequest& request) const;
ModifyPhoneBusinessProfileOutcome modifyPhoneBusinessProfile(const Model::ModifyPhoneBusinessProfileRequest &request)const;
void modifyPhoneBusinessProfileAsync(const Model::ModifyPhoneBusinessProfileRequest& request, const ModifyPhoneBusinessProfileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyPhoneBusinessProfileOutcomeCallable modifyPhoneBusinessProfileCallable(const Model::ModifyPhoneBusinessProfileRequest& request) const;
PublishFlowOutcome publishFlow(const Model::PublishFlowRequest &request)const;
void publishFlowAsync(const Model::PublishFlowRequest& request, const PublishFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PublishFlowOutcomeCallable publishFlowCallable(const Model::PublishFlowRequest& request) const;
QueryChatappBindWabaOutcome queryChatappBindWaba(const Model::QueryChatappBindWabaRequest &request)const;
void queryChatappBindWabaAsync(const Model::QueryChatappBindWabaRequest& request, const QueryChatappBindWabaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryChatappBindWabaOutcomeCallable queryChatappBindWabaCallable(const Model::QueryChatappBindWabaRequest& request) const;
@@ -361,6 +488,15 @@ namespace AlibabaCloud
UpdateCommerceSettingOutcome updateCommerceSetting(const Model::UpdateCommerceSettingRequest &request)const;
void updateCommerceSettingAsync(const Model::UpdateCommerceSettingRequest& request, const UpdateCommerceSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCommerceSettingOutcomeCallable updateCommerceSettingCallable(const Model::UpdateCommerceSettingRequest& request) const;
UpdateFlowJSONAssetOutcome updateFlowJSONAsset(const Model::UpdateFlowJSONAssetRequest &request)const;
void updateFlowJSONAssetAsync(const Model::UpdateFlowJSONAssetRequest& request, const UpdateFlowJSONAssetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateFlowJSONAssetOutcomeCallable updateFlowJSONAssetCallable(const Model::UpdateFlowJSONAssetRequest& request) const;
UpdatePhoneEncryptionPublicKeyOutcome updatePhoneEncryptionPublicKey(const Model::UpdatePhoneEncryptionPublicKeyRequest &request)const;
void updatePhoneEncryptionPublicKeyAsync(const Model::UpdatePhoneEncryptionPublicKeyRequest& request, const UpdatePhoneEncryptionPublicKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdatePhoneEncryptionPublicKeyOutcomeCallable updatePhoneEncryptionPublicKeyCallable(const Model::UpdatePhoneEncryptionPublicKeyRequest& request) const;
UpdatePhoneMessageQrdlOutcome updatePhoneMessageQrdl(const Model::UpdatePhoneMessageQrdlRequest &request)const;
void updatePhoneMessageQrdlAsync(const Model::UpdatePhoneMessageQrdlRequest& request, const UpdatePhoneMessageQrdlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdatePhoneMessageQrdlOutcomeCallable updatePhoneMessageQrdlCallable(const Model::UpdatePhoneMessageQrdlRequest& request) const;
UpdatePhoneWebhookOutcome updatePhoneWebhook(const Model::UpdatePhoneWebhookRequest &request)const;
void updatePhoneWebhookAsync(const Model::UpdatePhoneWebhookRequest& request, const UpdatePhoneWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdatePhoneWebhookOutcomeCallable updatePhoneWebhookCallable(const Model::UpdatePhoneWebhookRequest& request) const;

View File

@@ -46,6 +46,9 @@ public:
std::string autofillText;
bool isOptOut;
std::string couponCode;
std::string flowId;
std::string flowAction;
std::string navigateScreen;
};
ButtonsItem buttonsItem;
std::vector<ButtonsItem> buttons;

View 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_CAMS_MODEL_CREATEFLOWREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_CREATEFLOWREQUEST_H_
#include <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT CreateFlowRequest : public RpcServiceRequest {
public:
CreateFlowRequest();
~CreateFlowRequest();
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
std::vector<std::string> getCategories() const;
void setCategories(const std::vector<std::string> &categories);
std::string getProdCode() const;
void setProdCode(const std::string &prodCode);
std::string getCustSpaceId() const;
void setCustSpaceId(const std::string &custSpaceId);
std::string getFlowName() const;
void setFlowName(const std::string &flowName);
private:
std::string apiCode_;
std::vector<std::string> categories_;
std::string prodCode_;
std::string custSpaceId_;
std::string flowName_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_CREATEFLOWREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_CAMS_MODEL_CREATEFLOWRESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_CREATEFLOWRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT CreateFlowResult : public ServiceResult
{
public:
struct Data
{
std::string flowId;
std::vector<std::string> categories;
std::string flowName;
};
CreateFlowResult();
explicit CreateFlowResult(const std::string &payload);
~CreateFlowResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_CREATEFLOWRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_CREATEPHONEMESSAGEQRDLREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_CREATEPHONEMESSAGEQRDLREQUEST_H_
#include <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT CreatePhoneMessageQrdlRequest : public RpcServiceRequest {
public:
CreatePhoneMessageQrdlRequest();
~CreatePhoneMessageQrdlRequest();
std::string getPhoneNumber() const;
void setPhoneNumber(const std::string &phoneNumber);
std::string getPrefilledMessage() const;
void setPrefilledMessage(const std::string &prefilledMessage);
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
std::string getGenerateQrImage() const;
void setGenerateQrImage(const std::string &generateQrImage);
std::string getProdCode() const;
void setProdCode(const std::string &prodCode);
std::string getCustSpaceId() const;
void setCustSpaceId(const std::string &custSpaceId);
private:
std::string phoneNumber_;
std::string prefilledMessage_;
std::string apiCode_;
std::string generateQrImage_;
std::string prodCode_;
std::string custSpaceId_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_CREATEPHONEMESSAGEQRDLREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_CREATEPHONEMESSAGEQRDLRESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_CREATEPHONEMESSAGEQRDLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT CreatePhoneMessageQrdlResult : public ServiceResult
{
public:
struct Data
{
std::string qrImageUrl;
std::string phoneNumber;
std::string qrdlCode;
std::string deepLinkUrl;
std::string generateQrImage;
std::string prefilledMessage;
};
CreatePhoneMessageQrdlResult();
explicit CreatePhoneMessageQrdlResult(const std::string &payload);
~CreatePhoneMessageQrdlResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_CREATEPHONEMESSAGEQRDLRESULT_H_

View File

@@ -32,8 +32,14 @@ public:
~DeleteChatappTemplateRequest();
std::string getCustWabaId() const;
void setCustWabaId(const std::string &custWabaId);
std::string getLanguage() const;
void setLanguage(const std::string &language);
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
std::string getTemplateType() const;
void setTemplateType(const std::string &templateType);
std::string getTemplateName() const;
void setTemplateName(const std::string &templateName);
std::string getIsvCode() const;
void setIsvCode(const std::string &isvCode);
std::string getProdCode() const;
@@ -45,7 +51,10 @@ public:
private:
std::string custWabaId_;
std::string language_;
std::string apiCode_;
std::string templateType_;
std::string templateName_;
std::string isvCode_;
std::string prodCode_;
std::string custSpaceId_;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_DELETEFLOWREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_DELETEFLOWREQUEST_H_
#include <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT DeleteFlowRequest : public RpcServiceRequest {
public:
DeleteFlowRequest();
~DeleteFlowRequest();
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
std::string getProdCode() const;
void setProdCode(const std::string &prodCode);
std::string getCustSpaceId() const;
void setCustSpaceId(const std::string &custSpaceId);
std::string getFlowId() const;
void setFlowId(const std::string &flowId);
private:
std::string apiCode_;
std::string prodCode_;
std::string custSpaceId_;
std::string flowId_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_DELETEFLOWREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_DELETEFLOWRESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_DELETEFLOWRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT DeleteFlowResult : public ServiceResult
{
public:
DeleteFlowResult();
explicit DeleteFlowResult(const std::string &payload);
~DeleteFlowResult();
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_DELETEFLOWRESULT_H_

View 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_CAMS_MODEL_DELETEPHONEMESSAGEQRDLREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_DELETEPHONEMESSAGEQRDLREQUEST_H_
#include <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT DeletePhoneMessageQrdlRequest : public RpcServiceRequest {
public:
DeletePhoneMessageQrdlRequest();
~DeletePhoneMessageQrdlRequest();
std::string getPhoneNumber() const;
void setPhoneNumber(const std::string &phoneNumber);
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
std::string getQrdlCode() const;
void setQrdlCode(const std::string &qrdlCode);
std::string getProdCode() const;
void setProdCode(const std::string &prodCode);
std::string getCustSpaceId() const;
void setCustSpaceId(const std::string &custSpaceId);
private:
std::string phoneNumber_;
std::string apiCode_;
std::string qrdlCode_;
std::string prodCode_;
std::string custSpaceId_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_DELETEPHONEMESSAGEQRDLREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_DELETEPHONEMESSAGEQRDLRESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_DELETEPHONEMESSAGEQRDLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT DeletePhoneMessageQrdlResult : public ServiceResult
{
public:
DeletePhoneMessageQrdlResult();
explicit DeletePhoneMessageQrdlResult(const std::string &payload);
~DeletePhoneMessageQrdlResult();
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_DELETEPHONEMESSAGEQRDLRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_DEPRECATEFLOWREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_DEPRECATEFLOWREQUEST_H_
#include <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT DeprecateFlowRequest : public RpcServiceRequest {
public:
DeprecateFlowRequest();
~DeprecateFlowRequest();
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
std::string getProdCode() const;
void setProdCode(const std::string &prodCode);
std::string getCustSpaceId() const;
void setCustSpaceId(const std::string &custSpaceId);
std::string getFlowId() const;
void setFlowId(const std::string &flowId);
private:
std::string apiCode_;
std::string prodCode_;
std::string custSpaceId_;
std::string flowId_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_DEPRECATEFLOWREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_DEPRECATEFLOWRESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_DEPRECATEFLOWRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT DeprecateFlowResult : public ServiceResult
{
public:
DeprecateFlowResult();
explicit DeprecateFlowResult(const std::string &payload);
~DeprecateFlowResult();
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_DEPRECATEFLOWRESULT_H_

View File

@@ -38,6 +38,8 @@ public:
void setApiCode(const std::string &apiCode);
std::string getTemplateType() const;
void setTemplateType(const std::string &templateType);
std::string getTemplateName() const;
void setTemplateName(const std::string &templateName);
std::string getIsvCode() const;
void setIsvCode(const std::string &isvCode);
std::string getProdCode() const;
@@ -52,6 +54,7 @@ private:
std::string custWabaId_;
std::string apiCode_;
std::string templateType_;
std::string templateName_;
std::string isvCode_;
std::string prodCode_;
std::string custSpaceId_;

View File

@@ -47,16 +47,19 @@ namespace AlibabaCloud
std::string nextTemplateName;
};
std::string autofillText;
std::string packageName;
std::string text;
ExtendAttrs extendAttrs;
std::string url;
std::string flowId;
std::string type;
std::string couponCode;
bool isOptOut;
std::string flowAction;
std::string signatureHash;
std::string packageName;
std::string navigateScreen;
std::string phoneNumber;
std::string text;
std::string urlType;
ExtendAttrs extendAttrs;
std::string url;
};
struct
{

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_GETFLOWJSONASSESTREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_GETFLOWJSONASSESTREQUEST_H_
#include <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT GetFlowJSONAssestRequest : public RpcServiceRequest {
public:
GetFlowJSONAssestRequest();
~GetFlowJSONAssestRequest();
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
std::string getProdCode() const;
void setProdCode(const std::string &prodCode);
std::string getCustSpaceId() const;
void setCustSpaceId(const std::string &custSpaceId);
std::string getFlowId() const;
void setFlowId(const std::string &flowId);
private:
std::string apiCode_;
std::string prodCode_;
std::string custSpaceId_;
std::string flowId_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_GETFLOWJSONASSESTREQUEST_H_

View File

@@ -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_CAMS_MODEL_GETFLOWJSONASSESTRESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_GETFLOWJSONASSESTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT GetFlowJSONAssestResult : public ServiceResult
{
public:
struct Data
{
std::string flowId;
std::string filePath;
};
GetFlowJSONAssestResult();
explicit GetFlowJSONAssestResult(const std::string &payload);
~GetFlowJSONAssestResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_GETFLOWJSONASSESTRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_GETFLOWPREVIEWURLREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_GETFLOWPREVIEWURLREQUEST_H_
#include <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT GetFlowPreviewUrlRequest : public RpcServiceRequest {
public:
GetFlowPreviewUrlRequest();
~GetFlowPreviewUrlRequest();
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
std::string getProdCode() const;
void setProdCode(const std::string &prodCode);
std::string getCustSpaceId() const;
void setCustSpaceId(const std::string &custSpaceId);
std::string getFlowId() const;
void setFlowId(const std::string &flowId);
private:
std::string apiCode_;
std::string prodCode_;
std::string custSpaceId_;
std::string flowId_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_GETFLOWPREVIEWURLREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_CAMS_MODEL_GETFLOWPREVIEWURLRESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_GETFLOWPREVIEWURLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT GetFlowPreviewUrlResult : public ServiceResult
{
public:
struct Data
{
std::string flowId;
std::string previewUrl;
long previewUrlExpires;
};
GetFlowPreviewUrlResult();
explicit GetFlowPreviewUrlResult(const std::string &payload);
~GetFlowPreviewUrlResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_GETFLOWPREVIEWURLRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_GETFLOWREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_GETFLOWREQUEST_H_
#include <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT GetFlowRequest : public RpcServiceRequest {
public:
GetFlowRequest();
~GetFlowRequest();
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
std::string getProdCode() const;
void setProdCode(const std::string &prodCode);
std::string getCustSpaceId() const;
void setCustSpaceId(const std::string &custSpaceId);
std::string getFlowId() const;
void setFlowId(const std::string &flowId);
private:
std::string apiCode_;
std::string prodCode_;
std::string custSpaceId_;
std::string flowId_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_GETFLOWREQUEST_H_

Some files were not shown because too many files have changed in this diff Show More