From 21d175fb29694098737608a0cec5509519d49efc Mon Sep 17 00:00:00 2001 From: "haowei.yao" Date: Wed, 27 Mar 2019 11:19:13 +0800 Subject: [PATCH] =?UTF-8?q?ONS=20SDK=20Auto=20Released=20By=20wenting.ywt,?= =?UTF-8?q?Version=EF=BC=9A1.34.63?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haowei.yao --- CHANGELOG | 5 + CMakeLists.txt | 3 +- VERSION | 2 +- ons/CMakeLists.txt | 266 +++ ons/include/alibabacloud/ons/OnsClient.h | 414 ++++ ons/include/alibabacloud/ons/OnsExport.h | 32 + .../ons/model/OnsConsumerAccumulateRequest.h | 57 + .../ons/model/OnsConsumerAccumulateResult.h | 69 + .../model/OnsConsumerGetConnectionRequest.h | 54 + .../model/OnsConsumerGetConnectionResult.h | 64 + .../ons/model/OnsConsumerResetOffsetRequest.h | 63 + .../ons/model/OnsConsumerResetOffsetResult.h | 51 + .../ons/model/OnsConsumerStatusRequest.h | 60 + .../ons/model/OnsConsumerStatusResult.h | 118 ++ .../ons/model/OnsConsumerTimeSpanRequest.h | 57 + .../ons/model/OnsConsumerTimeSpanResult.h | 61 + .../ons/model/OnsDLQMessageGetByIdRequest.h | 57 + .../ons/model/OnsDLQMessageGetByIdResult.h | 75 + .../OnsDLQMessagePageQueryByGroupIdRequest.h | 69 + .../OnsDLQMessagePageQueryByGroupIdResult.h | 82 + .../model/OnsDLQMessageResendByIdRequest.h | 57 + .../ons/model/OnsDLQMessageResendByIdResult.h | 53 + .../ons/model/OnsGroupConsumerUpdateRequest.h | 57 + .../ons/model/OnsGroupConsumerUpdateResult.h | 51 + .../ons/model/OnsGroupCreateRequest.h | 57 + .../ons/model/OnsGroupCreateResult.h | 51 + .../ons/model/OnsGroupDeleteRequest.h | 54 + .../ons/model/OnsGroupDeleteResult.h | 51 + .../ons/model/OnsGroupListRequest.h | 54 + .../ons/model/OnsGroupListResult.h | 62 + .../ons/model/OnsGroupSubDetailRequest.h | 54 + .../ons/model/OnsGroupSubDetailResult.h | 63 + .../ons/model/OnsInstanceBaseInfoRequest.h | 51 + .../ons/model/OnsInstanceBaseInfoResult.h | 70 + .../ons/model/OnsInstanceCreateRequest.h | 54 + .../ons/model/OnsInstanceCreateResult.h | 58 + .../ons/model/OnsInstanceDeleteRequest.h | 51 + .../ons/model/OnsInstanceDeleteResult.h | 51 + .../model/OnsInstanceInServiceListRequest.h | 48 + .../model/OnsInstanceInServiceListResult.h | 62 + .../ons/model/OnsInstanceUpdateRequest.h | 57 + .../ons/model/OnsInstanceUpdateResult.h | 51 + .../ons/model/OnsMessageGetByKeyRequest.h | 57 + .../ons/model/OnsMessageGetByKeyResult.h | 75 + .../ons/model/OnsMessageGetByMsgIdRequest.h | 57 + .../ons/model/OnsMessageGetByMsgIdResult.h | 75 + .../model/OnsMessagePageQueryByTopicRequest.h | 69 + .../model/OnsMessagePageQueryByTopicResult.h | 82 + .../ons/model/OnsMessagePushRequest.h | 63 + .../ons/model/OnsMessagePushResult.h | 51 + .../ons/model/OnsMessageSendRequest.h | 63 + .../ons/model/OnsMessageSendResult.h | 53 + .../ons/model/OnsMessageTraceRequest.h | 57 + .../ons/model/OnsMessageTraceResult.h | 60 + .../ons/model/OnsMqttGroupIdCreateRequest.h | 60 + .../ons/model/OnsMqttGroupIdCreateResult.h | 51 + .../ons/model/OnsMqttGroupIdDeleteRequest.h | 57 + .../ons/model/OnsMqttGroupIdDeleteResult.h | 51 + .../ons/model/OnsMqttGroupIdListRequest.h | 51 + .../ons/model/OnsMqttGroupIdListResult.h | 66 + .../OnsMqttQueryClientByClientIdRequest.h | 54 + .../OnsMqttQueryClientByClientIdResult.h | 67 + .../OnsMqttQueryClientByGroupIdRequest.h | 54 + .../model/OnsMqttQueryClientByGroupIdResult.h | 58 + .../model/OnsMqttQueryClientByTopicRequest.h | 57 + .../model/OnsMqttQueryClientByTopicResult.h | 58 + .../model/OnsMqttQueryHistoryOnlineRequest.h | 60 + .../model/OnsMqttQueryHistoryOnlineResult.h | 65 + .../model/OnsMqttQueryMsgTransTrendRequest.h | 75 + .../model/OnsMqttQueryMsgTransTrendResult.h | 65 + .../ons/model/OnsRegionListRequest.h | 48 + .../ons/model/OnsRegionListResult.h | 63 + .../ons/model/OnsTopicCreateRequest.h | 60 + .../ons/model/OnsTopicCreateResult.h | 51 + .../ons/model/OnsTopicDeleteRequest.h | 54 + .../ons/model/OnsTopicDeleteResult.h | 51 + .../ons/model/OnsTopicListRequest.h | 54 + .../ons/model/OnsTopicListResult.h | 65 + .../ons/model/OnsTopicStatusRequest.h | 54 + .../ons/model/OnsTopicStatusResult.h | 59 + .../ons/model/OnsTopicSubDetailRequest.h | 54 + .../ons/model/OnsTopicSubDetailResult.h | 62 + .../ons/model/OnsTopicUpdateRequest.h | 57 + .../ons/model/OnsTopicUpdateResult.h | 51 + .../ons/model/OnsTraceGetResultRequest.h | 51 + .../ons/model/OnsTraceGetResultResult.h | 95 + .../ons/model/OnsTraceQueryByMsgIdRequest.h | 63 + .../ons/model/OnsTraceQueryByMsgIdResult.h | 53 + .../ons/model/OnsTraceQueryByMsgKeyRequest.h | 63 + .../ons/model/OnsTraceQueryByMsgKeyResult.h | 53 + .../ons/model/OnsTrendGroupOutputTpsRequest.h | 69 + .../ons/model/OnsTrendGroupOutputTpsResult.h | 65 + .../ons/model/OnsTrendTopicInputTpsRequest.h | 66 + .../ons/model/OnsTrendTopicInputTpsResult.h | 65 + .../ons/model/OnsWarnCreateRequest.h | 75 + .../ons/model/OnsWarnCreateResult.h | 51 + .../ons/model/OnsWarnDeleteRequest.h | 57 + .../ons/model/OnsWarnDeleteResult.h | 51 + ons/src/OnsClient.cc | 1709 +++++++++++++++++ ons/src/model/OnsConsumerAccumulateRequest.cc | 71 + ons/src/model/OnsConsumerAccumulateResult.cc | 82 + .../model/OnsConsumerGetConnectionRequest.cc | 60 + .../model/OnsConsumerGetConnectionResult.cc | 72 + .../model/OnsConsumerResetOffsetRequest.cc | 93 + ons/src/model/OnsConsumerResetOffsetResult.cc | 52 + ons/src/model/OnsConsumerStatusRequest.cc | 82 + ons/src/model/OnsConsumerStatusResult.cc | 172 ++ ons/src/model/OnsConsumerTimeSpanRequest.cc | 71 + ons/src/model/OnsConsumerTimeSpanResult.cc | 68 + ons/src/model/OnsDLQMessageGetByIdRequest.cc | 71 + ons/src/model/OnsDLQMessageGetByIdResult.cc | 94 + .../OnsDLQMessagePageQueryByGroupIdRequest.cc | 115 ++ .../OnsDLQMessagePageQueryByGroupIdResult.cc | 106 + .../model/OnsDLQMessageResendByIdRequest.cc | 71 + .../model/OnsDLQMessageResendByIdResult.cc | 60 + .../model/OnsGroupConsumerUpdateRequest.cc | 71 + ons/src/model/OnsGroupConsumerUpdateResult.cc | 52 + ons/src/model/OnsGroupCreateRequest.cc | 71 + ons/src/model/OnsGroupCreateResult.cc | 52 + ons/src/model/OnsGroupDeleteRequest.cc | 60 + ons/src/model/OnsGroupDeleteResult.cc | 52 + ons/src/model/OnsGroupListRequest.cc | 60 + ons/src/model/OnsGroupListResult.cc | 75 + ons/src/model/OnsGroupSubDetailRequest.cc | 60 + ons/src/model/OnsGroupSubDetailResult.cc | 67 + ons/src/model/OnsInstanceBaseInfoRequest.cc | 49 + ons/src/model/OnsInstanceBaseInfoResult.cc | 79 + ons/src/model/OnsInstanceCreateRequest.cc | 60 + ons/src/model/OnsInstanceCreateResult.cc | 62 + ons/src/model/OnsInstanceDeleteRequest.cc | 49 + ons/src/model/OnsInstanceDeleteResult.cc | 52 + .../model/OnsInstanceInServiceListRequest.cc | 38 + .../model/OnsInstanceInServiceListResult.cc | 75 + ons/src/model/OnsInstanceUpdateRequest.cc | 71 + ons/src/model/OnsInstanceUpdateResult.cc | 52 + ons/src/model/OnsMessageGetByKeyRequest.cc | 71 + ons/src/model/OnsMessageGetByKeyResult.cc | 99 + ons/src/model/OnsMessageGetByMsgIdRequest.cc | 71 + ons/src/model/OnsMessageGetByMsgIdResult.cc | 94 + .../OnsMessagePageQueryByTopicRequest.cc | 115 ++ .../model/OnsMessagePageQueryByTopicResult.cc | 106 + ons/src/model/OnsMessagePushRequest.cc | 93 + ons/src/model/OnsMessagePushResult.cc | 52 + ons/src/model/OnsMessageSendRequest.cc | 93 + ons/src/model/OnsMessageSendResult.cc | 59 + ons/src/model/OnsMessageTraceRequest.cc | 71 + ons/src/model/OnsMessageTraceResult.cc | 71 + ons/src/model/OnsMqttGroupIdCreateRequest.cc | 82 + ons/src/model/OnsMqttGroupIdCreateResult.cc | 52 + ons/src/model/OnsMqttGroupIdDeleteRequest.cc | 71 + ons/src/model/OnsMqttGroupIdDeleteResult.cc | 52 + ons/src/model/OnsMqttGroupIdListRequest.cc | 49 + ons/src/model/OnsMqttGroupIdListResult.cc | 83 + .../OnsMqttQueryClientByClientIdRequest.cc | 60 + .../OnsMqttQueryClientByClientIdResult.cc | 78 + .../OnsMqttQueryClientByGroupIdRequest.cc | 60 + .../OnsMqttQueryClientByGroupIdResult.cc | 62 + .../model/OnsMqttQueryClientByTopicRequest.cc | 71 + .../model/OnsMqttQueryClientByTopicResult.cc | 62 + .../model/OnsMqttQueryHistoryOnlineRequest.cc | 82 + .../model/OnsMqttQueryHistoryOnlineResult.cc | 74 + .../model/OnsMqttQueryMsgTransTrendRequest.cc | 137 ++ .../model/OnsMqttQueryMsgTransTrendResult.cc | 74 + ons/src/model/OnsRegionListRequest.cc | 38 + ons/src/model/OnsRegionListResult.cc | 77 + ons/src/model/OnsTopicCreateRequest.cc | 82 + ons/src/model/OnsTopicCreateResult.cc | 52 + ons/src/model/OnsTopicDeleteRequest.cc | 60 + ons/src/model/OnsTopicDeleteResult.cc | 52 + ons/src/model/OnsTopicListRequest.cc | 60 + ons/src/model/OnsTopicListResult.cc | 81 + ons/src/model/OnsTopicStatusRequest.cc | 60 + ons/src/model/OnsTopicStatusResult.cc | 64 + ons/src/model/OnsTopicSubDetailRequest.cc | 60 + ons/src/model/OnsTopicSubDetailResult.cc | 65 + ons/src/model/OnsTopicUpdateRequest.cc | 71 + ons/src/model/OnsTopicUpdateResult.cc | 52 + ons/src/model/OnsTraceGetResultRequest.cc | 49 + ons/src/model/OnsTraceGetResultResult.cc | 130 ++ ons/src/model/OnsTraceQueryByMsgIdRequest.cc | 93 + ons/src/model/OnsTraceQueryByMsgIdResult.cc | 59 + ons/src/model/OnsTraceQueryByMsgKeyRequest.cc | 93 + ons/src/model/OnsTraceQueryByMsgKeyResult.cc | 59 + .../model/OnsTrendGroupOutputTpsRequest.cc | 115 ++ ons/src/model/OnsTrendGroupOutputTpsResult.cc | 74 + ons/src/model/OnsTrendTopicInputTpsRequest.cc | 104 + ons/src/model/OnsTrendTopicInputTpsResult.cc | 74 + ons/src/model/OnsWarnCreateRequest.cc | 137 ++ ons/src/model/OnsWarnCreateResult.cc | 52 + ons/src/model/OnsWarnDeleteRequest.cc | 71 + ons/src/model/OnsWarnDeleteResult.cc | 52 + 191 files changed, 14681 insertions(+), 2 deletions(-) create mode 100644 ons/CMakeLists.txt create mode 100644 ons/include/alibabacloud/ons/OnsClient.h create mode 100644 ons/include/alibabacloud/ons/OnsExport.h create mode 100644 ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsConsumerAccumulateResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsConsumerStatusResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsGroupCreateResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsGroupDeleteResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsGroupListRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsGroupListResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsGroupSubDetailResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsInstanceCreateResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsInstanceDeleteResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsInstanceInServiceListResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsInstanceUpdateResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessageGetByKeyResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessagePushResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessageSendResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMessageTraceResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttGroupIdListResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsRegionListRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsRegionListResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicCreateResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicDeleteResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicListRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicListResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicStatusResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicSubDetailResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTopicUpdateResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTraceGetResultResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsWarnCreateResult.h create mode 100644 ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h create mode 100644 ons/include/alibabacloud/ons/model/OnsWarnDeleteResult.h create mode 100644 ons/src/OnsClient.cc create mode 100644 ons/src/model/OnsConsumerAccumulateRequest.cc create mode 100644 ons/src/model/OnsConsumerAccumulateResult.cc create mode 100644 ons/src/model/OnsConsumerGetConnectionRequest.cc create mode 100644 ons/src/model/OnsConsumerGetConnectionResult.cc create mode 100644 ons/src/model/OnsConsumerResetOffsetRequest.cc create mode 100644 ons/src/model/OnsConsumerResetOffsetResult.cc create mode 100644 ons/src/model/OnsConsumerStatusRequest.cc create mode 100644 ons/src/model/OnsConsumerStatusResult.cc create mode 100644 ons/src/model/OnsConsumerTimeSpanRequest.cc create mode 100644 ons/src/model/OnsConsumerTimeSpanResult.cc create mode 100644 ons/src/model/OnsDLQMessageGetByIdRequest.cc create mode 100644 ons/src/model/OnsDLQMessageGetByIdResult.cc create mode 100644 ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc create mode 100644 ons/src/model/OnsDLQMessagePageQueryByGroupIdResult.cc create mode 100644 ons/src/model/OnsDLQMessageResendByIdRequest.cc create mode 100644 ons/src/model/OnsDLQMessageResendByIdResult.cc create mode 100644 ons/src/model/OnsGroupConsumerUpdateRequest.cc create mode 100644 ons/src/model/OnsGroupConsumerUpdateResult.cc create mode 100644 ons/src/model/OnsGroupCreateRequest.cc create mode 100644 ons/src/model/OnsGroupCreateResult.cc create mode 100644 ons/src/model/OnsGroupDeleteRequest.cc create mode 100644 ons/src/model/OnsGroupDeleteResult.cc create mode 100644 ons/src/model/OnsGroupListRequest.cc create mode 100644 ons/src/model/OnsGroupListResult.cc create mode 100644 ons/src/model/OnsGroupSubDetailRequest.cc create mode 100644 ons/src/model/OnsGroupSubDetailResult.cc create mode 100644 ons/src/model/OnsInstanceBaseInfoRequest.cc create mode 100644 ons/src/model/OnsInstanceBaseInfoResult.cc create mode 100644 ons/src/model/OnsInstanceCreateRequest.cc create mode 100644 ons/src/model/OnsInstanceCreateResult.cc create mode 100644 ons/src/model/OnsInstanceDeleteRequest.cc create mode 100644 ons/src/model/OnsInstanceDeleteResult.cc create mode 100644 ons/src/model/OnsInstanceInServiceListRequest.cc create mode 100644 ons/src/model/OnsInstanceInServiceListResult.cc create mode 100644 ons/src/model/OnsInstanceUpdateRequest.cc create mode 100644 ons/src/model/OnsInstanceUpdateResult.cc create mode 100644 ons/src/model/OnsMessageGetByKeyRequest.cc create mode 100644 ons/src/model/OnsMessageGetByKeyResult.cc create mode 100644 ons/src/model/OnsMessageGetByMsgIdRequest.cc create mode 100644 ons/src/model/OnsMessageGetByMsgIdResult.cc create mode 100644 ons/src/model/OnsMessagePageQueryByTopicRequest.cc create mode 100644 ons/src/model/OnsMessagePageQueryByTopicResult.cc create mode 100644 ons/src/model/OnsMessagePushRequest.cc create mode 100644 ons/src/model/OnsMessagePushResult.cc create mode 100644 ons/src/model/OnsMessageSendRequest.cc create mode 100644 ons/src/model/OnsMessageSendResult.cc create mode 100644 ons/src/model/OnsMessageTraceRequest.cc create mode 100644 ons/src/model/OnsMessageTraceResult.cc create mode 100644 ons/src/model/OnsMqttGroupIdCreateRequest.cc create mode 100644 ons/src/model/OnsMqttGroupIdCreateResult.cc create mode 100644 ons/src/model/OnsMqttGroupIdDeleteRequest.cc create mode 100644 ons/src/model/OnsMqttGroupIdDeleteResult.cc create mode 100644 ons/src/model/OnsMqttGroupIdListRequest.cc create mode 100644 ons/src/model/OnsMqttGroupIdListResult.cc create mode 100644 ons/src/model/OnsMqttQueryClientByClientIdRequest.cc create mode 100644 ons/src/model/OnsMqttQueryClientByClientIdResult.cc create mode 100644 ons/src/model/OnsMqttQueryClientByGroupIdRequest.cc create mode 100644 ons/src/model/OnsMqttQueryClientByGroupIdResult.cc create mode 100644 ons/src/model/OnsMqttQueryClientByTopicRequest.cc create mode 100644 ons/src/model/OnsMqttQueryClientByTopicResult.cc create mode 100644 ons/src/model/OnsMqttQueryHistoryOnlineRequest.cc create mode 100644 ons/src/model/OnsMqttQueryHistoryOnlineResult.cc create mode 100644 ons/src/model/OnsMqttQueryMsgTransTrendRequest.cc create mode 100644 ons/src/model/OnsMqttQueryMsgTransTrendResult.cc create mode 100644 ons/src/model/OnsRegionListRequest.cc create mode 100644 ons/src/model/OnsRegionListResult.cc create mode 100644 ons/src/model/OnsTopicCreateRequest.cc create mode 100644 ons/src/model/OnsTopicCreateResult.cc create mode 100644 ons/src/model/OnsTopicDeleteRequest.cc create mode 100644 ons/src/model/OnsTopicDeleteResult.cc create mode 100644 ons/src/model/OnsTopicListRequest.cc create mode 100644 ons/src/model/OnsTopicListResult.cc create mode 100644 ons/src/model/OnsTopicStatusRequest.cc create mode 100644 ons/src/model/OnsTopicStatusResult.cc create mode 100644 ons/src/model/OnsTopicSubDetailRequest.cc create mode 100644 ons/src/model/OnsTopicSubDetailResult.cc create mode 100644 ons/src/model/OnsTopicUpdateRequest.cc create mode 100644 ons/src/model/OnsTopicUpdateResult.cc create mode 100644 ons/src/model/OnsTraceGetResultRequest.cc create mode 100644 ons/src/model/OnsTraceGetResultResult.cc create mode 100644 ons/src/model/OnsTraceQueryByMsgIdRequest.cc create mode 100644 ons/src/model/OnsTraceQueryByMsgIdResult.cc create mode 100644 ons/src/model/OnsTraceQueryByMsgKeyRequest.cc create mode 100644 ons/src/model/OnsTraceQueryByMsgKeyResult.cc create mode 100644 ons/src/model/OnsTrendGroupOutputTpsRequest.cc create mode 100644 ons/src/model/OnsTrendGroupOutputTpsResult.cc create mode 100644 ons/src/model/OnsTrendTopicInputTpsRequest.cc create mode 100644 ons/src/model/OnsTrendTopicInputTpsResult.cc create mode 100644 ons/src/model/OnsWarnCreateRequest.cc create mode 100644 ons/src/model/OnsWarnCreateResult.cc create mode 100644 ons/src/model/OnsWarnDeleteRequest.cc create mode 100644 ons/src/model/OnsWarnDeleteResult.cc diff --git a/CHANGELOG b/CHANGELOG index b276380c9..20a3fb1a7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2019-03-27 Version: 1.34.63 +1, Add DLQ message openAPI. +2, Add Query the subscription relational openAPI. +3, Remove white list restrictions. + 2019-03-27 Version: 1.34.62 1, release dysmsapi diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f5919339..c20a631c8 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,4 +113,5 @@ add_subdirectory(kms) add_subdirectory(sas-api) add_subdirectory(jarvis-public) add_subdirectory(mts) -add_subdirectory(dysmsapi) \ No newline at end of file +add_subdirectory(dysmsapi) +add_subdirectory(ons) \ No newline at end of file diff --git a/VERSION b/VERSION index f895acb92..226f4b9ba 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.62 \ No newline at end of file +1.34.63 \ No newline at end of file diff --git a/ons/CMakeLists.txt b/ons/CMakeLists.txt new file mode 100644 index 000000000..749d436e6 --- /dev/null +++ b/ons/CMakeLists.txt @@ -0,0 +1,266 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(ons_public_header + include/alibabacloud/ons/OnsClient.h + include/alibabacloud/ons/OnsExport.h ) + +set(ons_public_header_model + include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h + include/alibabacloud/ons/model/OnsTopicSubDetailResult.h + include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h + include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineResult.h + include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h + include/alibabacloud/ons/model/OnsInstanceDeleteResult.h + include/alibabacloud/ons/model/OnsTopicDeleteRequest.h + include/alibabacloud/ons/model/OnsTopicDeleteResult.h + include/alibabacloud/ons/model/OnsTopicUpdateRequest.h + include/alibabacloud/ons/model/OnsTopicUpdateResult.h + include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h + include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyResult.h + include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h + include/alibabacloud/ons/model/OnsConsumerGetConnectionResult.h + include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h + include/alibabacloud/ons/model/OnsTraceQueryByMsgIdResult.h + include/alibabacloud/ons/model/OnsRegionListRequest.h + include/alibabacloud/ons/model/OnsRegionListResult.h + include/alibabacloud/ons/model/OnsTopicListRequest.h + include/alibabacloud/ons/model/OnsTopicListResult.h + include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h + include/alibabacloud/ons/model/OnsConsumerAccumulateResult.h + include/alibabacloud/ons/model/OnsMessageSendRequest.h + include/alibabacloud/ons/model/OnsMessageSendResult.h + include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h + include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdResult.h + include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h + include/alibabacloud/ons/model/OnsGroupConsumerUpdateResult.h + include/alibabacloud/ons/model/OnsMessageTraceRequest.h + include/alibabacloud/ons/model/OnsMessageTraceResult.h + include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h + include/alibabacloud/ons/model/OnsConsumerTimeSpanResult.h + include/alibabacloud/ons/model/OnsGroupListRequest.h + include/alibabacloud/ons/model/OnsGroupListResult.h + include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h + include/alibabacloud/ons/model/OnsGroupSubDetailResult.h + include/alibabacloud/ons/model/OnsTraceGetResultRequest.h + include/alibabacloud/ons/model/OnsTraceGetResultResult.h + include/alibabacloud/ons/model/OnsTopicCreateRequest.h + include/alibabacloud/ons/model/OnsTopicCreateResult.h + include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h + include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdResult.h + include/alibabacloud/ons/model/OnsGroupDeleteRequest.h + include/alibabacloud/ons/model/OnsGroupDeleteResult.h + include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h + include/alibabacloud/ons/model/OnsInstanceUpdateResult.h + include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h + include/alibabacloud/ons/model/OnsMessagePageQueryByTopicResult.h + include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h + include/alibabacloud/ons/model/OnsTrendTopicInputTpsResult.h + include/alibabacloud/ons/model/OnsGroupCreateRequest.h + include/alibabacloud/ons/model/OnsGroupCreateResult.h + include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h + include/alibabacloud/ons/model/OnsDLQMessageResendByIdResult.h + include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h + include/alibabacloud/ons/model/OnsTrendGroupOutputTpsResult.h + include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h + include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdResult.h + include/alibabacloud/ons/model/OnsMessagePushRequest.h + include/alibabacloud/ons/model/OnsMessagePushResult.h + include/alibabacloud/ons/model/OnsConsumerStatusRequest.h + include/alibabacloud/ons/model/OnsConsumerStatusResult.h + include/alibabacloud/ons/model/OnsWarnDeleteRequest.h + include/alibabacloud/ons/model/OnsWarnDeleteResult.h + include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h + include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendResult.h + include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h + include/alibabacloud/ons/model/OnsConsumerResetOffsetResult.h + include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h + include/alibabacloud/ons/model/OnsMessageGetByMsgIdResult.h + include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h + include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h + include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h + include/alibabacloud/ons/model/OnsMqttGroupIdDeleteResult.h + include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h + include/alibabacloud/ons/model/OnsInstanceInServiceListResult.h + include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h + include/alibabacloud/ons/model/OnsMqttGroupIdListResult.h + include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h + include/alibabacloud/ons/model/OnsDLQMessageGetByIdResult.h + include/alibabacloud/ons/model/OnsInstanceCreateRequest.h + include/alibabacloud/ons/model/OnsInstanceCreateResult.h + include/alibabacloud/ons/model/OnsWarnCreateRequest.h + include/alibabacloud/ons/model/OnsWarnCreateResult.h + include/alibabacloud/ons/model/OnsTopicStatusRequest.h + include/alibabacloud/ons/model/OnsTopicStatusResult.h + include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h + include/alibabacloud/ons/model/OnsMqttGroupIdCreateResult.h + include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h + include/alibabacloud/ons/model/OnsMqttQueryClientByTopicResult.h + include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h + include/alibabacloud/ons/model/OnsMessageGetByKeyResult.h ) + +set(ons_src + src/OnsClient.cc + src/model/OnsTopicSubDetailRequest.cc + src/model/OnsTopicSubDetailResult.cc + src/model/OnsMqttQueryHistoryOnlineRequest.cc + src/model/OnsMqttQueryHistoryOnlineResult.cc + src/model/OnsInstanceDeleteRequest.cc + src/model/OnsInstanceDeleteResult.cc + src/model/OnsTopicDeleteRequest.cc + src/model/OnsTopicDeleteResult.cc + src/model/OnsTopicUpdateRequest.cc + src/model/OnsTopicUpdateResult.cc + src/model/OnsTraceQueryByMsgKeyRequest.cc + src/model/OnsTraceQueryByMsgKeyResult.cc + src/model/OnsConsumerGetConnectionRequest.cc + src/model/OnsConsumerGetConnectionResult.cc + src/model/OnsTraceQueryByMsgIdRequest.cc + src/model/OnsTraceQueryByMsgIdResult.cc + src/model/OnsRegionListRequest.cc + src/model/OnsRegionListResult.cc + src/model/OnsTopicListRequest.cc + src/model/OnsTopicListResult.cc + src/model/OnsConsumerAccumulateRequest.cc + src/model/OnsConsumerAccumulateResult.cc + src/model/OnsMessageSendRequest.cc + src/model/OnsMessageSendResult.cc + src/model/OnsMqttQueryClientByGroupIdRequest.cc + src/model/OnsMqttQueryClientByGroupIdResult.cc + src/model/OnsGroupConsumerUpdateRequest.cc + src/model/OnsGroupConsumerUpdateResult.cc + src/model/OnsMessageTraceRequest.cc + src/model/OnsMessageTraceResult.cc + src/model/OnsConsumerTimeSpanRequest.cc + src/model/OnsConsumerTimeSpanResult.cc + src/model/OnsGroupListRequest.cc + src/model/OnsGroupListResult.cc + src/model/OnsGroupSubDetailRequest.cc + src/model/OnsGroupSubDetailResult.cc + src/model/OnsTraceGetResultRequest.cc + src/model/OnsTraceGetResultResult.cc + src/model/OnsTopicCreateRequest.cc + src/model/OnsTopicCreateResult.cc + src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc + src/model/OnsDLQMessagePageQueryByGroupIdResult.cc + src/model/OnsGroupDeleteRequest.cc + src/model/OnsGroupDeleteResult.cc + src/model/OnsInstanceUpdateRequest.cc + src/model/OnsInstanceUpdateResult.cc + src/model/OnsMessagePageQueryByTopicRequest.cc + src/model/OnsMessagePageQueryByTopicResult.cc + src/model/OnsTrendTopicInputTpsRequest.cc + src/model/OnsTrendTopicInputTpsResult.cc + src/model/OnsGroupCreateRequest.cc + src/model/OnsGroupCreateResult.cc + src/model/OnsDLQMessageResendByIdRequest.cc + src/model/OnsDLQMessageResendByIdResult.cc + src/model/OnsTrendGroupOutputTpsRequest.cc + src/model/OnsTrendGroupOutputTpsResult.cc + src/model/OnsMqttQueryClientByClientIdRequest.cc + src/model/OnsMqttQueryClientByClientIdResult.cc + src/model/OnsMessagePushRequest.cc + src/model/OnsMessagePushResult.cc + src/model/OnsConsumerStatusRequest.cc + src/model/OnsConsumerStatusResult.cc + src/model/OnsWarnDeleteRequest.cc + src/model/OnsWarnDeleteResult.cc + src/model/OnsMqttQueryMsgTransTrendRequest.cc + src/model/OnsMqttQueryMsgTransTrendResult.cc + src/model/OnsConsumerResetOffsetRequest.cc + src/model/OnsConsumerResetOffsetResult.cc + src/model/OnsMessageGetByMsgIdRequest.cc + src/model/OnsMessageGetByMsgIdResult.cc + src/model/OnsInstanceBaseInfoRequest.cc + src/model/OnsInstanceBaseInfoResult.cc + src/model/OnsMqttGroupIdDeleteRequest.cc + src/model/OnsMqttGroupIdDeleteResult.cc + src/model/OnsInstanceInServiceListRequest.cc + src/model/OnsInstanceInServiceListResult.cc + src/model/OnsMqttGroupIdListRequest.cc + src/model/OnsMqttGroupIdListResult.cc + src/model/OnsDLQMessageGetByIdRequest.cc + src/model/OnsDLQMessageGetByIdResult.cc + src/model/OnsInstanceCreateRequest.cc + src/model/OnsInstanceCreateResult.cc + src/model/OnsWarnCreateRequest.cc + src/model/OnsWarnCreateResult.cc + src/model/OnsTopicStatusRequest.cc + src/model/OnsTopicStatusResult.cc + src/model/OnsMqttGroupIdCreateRequest.cc + src/model/OnsMqttGroupIdCreateResult.cc + src/model/OnsMqttQueryClientByTopicRequest.cc + src/model/OnsMqttQueryClientByTopicResult.cc + src/model/OnsMessageGetByKeyRequest.cc + src/model/OnsMessageGetByKeyResult.cc ) + +add_library(ons ${LIB_TYPE} + ${ons_public_header} + ${ons_public_header_model} + ${ons_src}) + +set_target_properties(ons + 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}ons + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(ons + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_ONS_LIBRARY) +endif() + +target_include_directories(ons + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(ons + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(ons + jsoncpp) + target_include_directories(ons + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(ons + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(ons + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(ons + PRIVATE /usr/include/jsoncpp) + target_link_libraries(ons + jsoncpp) +endif() + +install(FILES ${ons_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ons) +install(FILES ${ons_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ons/model) +install(TARGETS ons + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/OnsClient.h b/ons/include/alibabacloud/ons/OnsClient.h new file mode 100644 index 000000000..b1850bf33 --- /dev/null +++ b/ons/include/alibabacloud/ons/OnsClient.h @@ -0,0 +1,414 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_ONSCLIENT_H_ +#define ALIBABACLOUD_ONS_ONSCLIENT_H_ + +#include +#include +#include +#include +#include "OnsExport.h" +#include "model/OnsTopicSubDetailRequest.h" +#include "model/OnsTopicSubDetailResult.h" +#include "model/OnsMqttQueryHistoryOnlineRequest.h" +#include "model/OnsMqttQueryHistoryOnlineResult.h" +#include "model/OnsInstanceDeleteRequest.h" +#include "model/OnsInstanceDeleteResult.h" +#include "model/OnsTopicDeleteRequest.h" +#include "model/OnsTopicDeleteResult.h" +#include "model/OnsTopicUpdateRequest.h" +#include "model/OnsTopicUpdateResult.h" +#include "model/OnsTraceQueryByMsgKeyRequest.h" +#include "model/OnsTraceQueryByMsgKeyResult.h" +#include "model/OnsConsumerGetConnectionRequest.h" +#include "model/OnsConsumerGetConnectionResult.h" +#include "model/OnsTraceQueryByMsgIdRequest.h" +#include "model/OnsTraceQueryByMsgIdResult.h" +#include "model/OnsRegionListRequest.h" +#include "model/OnsRegionListResult.h" +#include "model/OnsTopicListRequest.h" +#include "model/OnsTopicListResult.h" +#include "model/OnsConsumerAccumulateRequest.h" +#include "model/OnsConsumerAccumulateResult.h" +#include "model/OnsMessageSendRequest.h" +#include "model/OnsMessageSendResult.h" +#include "model/OnsMqttQueryClientByGroupIdRequest.h" +#include "model/OnsMqttQueryClientByGroupIdResult.h" +#include "model/OnsGroupConsumerUpdateRequest.h" +#include "model/OnsGroupConsumerUpdateResult.h" +#include "model/OnsMessageTraceRequest.h" +#include "model/OnsMessageTraceResult.h" +#include "model/OnsConsumerTimeSpanRequest.h" +#include "model/OnsConsumerTimeSpanResult.h" +#include "model/OnsGroupListRequest.h" +#include "model/OnsGroupListResult.h" +#include "model/OnsGroupSubDetailRequest.h" +#include "model/OnsGroupSubDetailResult.h" +#include "model/OnsTraceGetResultRequest.h" +#include "model/OnsTraceGetResultResult.h" +#include "model/OnsTopicCreateRequest.h" +#include "model/OnsTopicCreateResult.h" +#include "model/OnsDLQMessagePageQueryByGroupIdRequest.h" +#include "model/OnsDLQMessagePageQueryByGroupIdResult.h" +#include "model/OnsGroupDeleteRequest.h" +#include "model/OnsGroupDeleteResult.h" +#include "model/OnsInstanceUpdateRequest.h" +#include "model/OnsInstanceUpdateResult.h" +#include "model/OnsMessagePageQueryByTopicRequest.h" +#include "model/OnsMessagePageQueryByTopicResult.h" +#include "model/OnsTrendTopicInputTpsRequest.h" +#include "model/OnsTrendTopicInputTpsResult.h" +#include "model/OnsGroupCreateRequest.h" +#include "model/OnsGroupCreateResult.h" +#include "model/OnsDLQMessageResendByIdRequest.h" +#include "model/OnsDLQMessageResendByIdResult.h" +#include "model/OnsTrendGroupOutputTpsRequest.h" +#include "model/OnsTrendGroupOutputTpsResult.h" +#include "model/OnsMqttQueryClientByClientIdRequest.h" +#include "model/OnsMqttQueryClientByClientIdResult.h" +#include "model/OnsMessagePushRequest.h" +#include "model/OnsMessagePushResult.h" +#include "model/OnsConsumerStatusRequest.h" +#include "model/OnsConsumerStatusResult.h" +#include "model/OnsWarnDeleteRequest.h" +#include "model/OnsWarnDeleteResult.h" +#include "model/OnsMqttQueryMsgTransTrendRequest.h" +#include "model/OnsMqttQueryMsgTransTrendResult.h" +#include "model/OnsConsumerResetOffsetRequest.h" +#include "model/OnsConsumerResetOffsetResult.h" +#include "model/OnsMessageGetByMsgIdRequest.h" +#include "model/OnsMessageGetByMsgIdResult.h" +#include "model/OnsInstanceBaseInfoRequest.h" +#include "model/OnsInstanceBaseInfoResult.h" +#include "model/OnsMqttGroupIdDeleteRequest.h" +#include "model/OnsMqttGroupIdDeleteResult.h" +#include "model/OnsInstanceInServiceListRequest.h" +#include "model/OnsInstanceInServiceListResult.h" +#include "model/OnsMqttGroupIdListRequest.h" +#include "model/OnsMqttGroupIdListResult.h" +#include "model/OnsDLQMessageGetByIdRequest.h" +#include "model/OnsDLQMessageGetByIdResult.h" +#include "model/OnsInstanceCreateRequest.h" +#include "model/OnsInstanceCreateResult.h" +#include "model/OnsWarnCreateRequest.h" +#include "model/OnsWarnCreateResult.h" +#include "model/OnsTopicStatusRequest.h" +#include "model/OnsTopicStatusResult.h" +#include "model/OnsMqttGroupIdCreateRequest.h" +#include "model/OnsMqttGroupIdCreateResult.h" +#include "model/OnsMqttQueryClientByTopicRequest.h" +#include "model/OnsMqttQueryClientByTopicResult.h" +#include "model/OnsMessageGetByKeyRequest.h" +#include "model/OnsMessageGetByKeyResult.h" + + +namespace AlibabaCloud +{ + namespace Ons + { + class ALIBABACLOUD_ONS_EXPORT OnsClient : public RpcServiceClient + { + public: + typedef Outcome OnsTopicSubDetailOutcome; + typedef std::future OnsTopicSubDetailOutcomeCallable; + typedef std::function&)> OnsTopicSubDetailAsyncHandler; + typedef Outcome OnsMqttQueryHistoryOnlineOutcome; + typedef std::future OnsMqttQueryHistoryOnlineOutcomeCallable; + typedef std::function&)> OnsMqttQueryHistoryOnlineAsyncHandler; + typedef Outcome OnsInstanceDeleteOutcome; + typedef std::future OnsInstanceDeleteOutcomeCallable; + typedef std::function&)> OnsInstanceDeleteAsyncHandler; + typedef Outcome OnsTopicDeleteOutcome; + typedef std::future OnsTopicDeleteOutcomeCallable; + typedef std::function&)> OnsTopicDeleteAsyncHandler; + typedef Outcome OnsTopicUpdateOutcome; + typedef std::future OnsTopicUpdateOutcomeCallable; + typedef std::function&)> OnsTopicUpdateAsyncHandler; + typedef Outcome OnsTraceQueryByMsgKeyOutcome; + typedef std::future OnsTraceQueryByMsgKeyOutcomeCallable; + typedef std::function&)> OnsTraceQueryByMsgKeyAsyncHandler; + typedef Outcome OnsConsumerGetConnectionOutcome; + typedef std::future OnsConsumerGetConnectionOutcomeCallable; + typedef std::function&)> OnsConsumerGetConnectionAsyncHandler; + typedef Outcome OnsTraceQueryByMsgIdOutcome; + typedef std::future OnsTraceQueryByMsgIdOutcomeCallable; + typedef std::function&)> OnsTraceQueryByMsgIdAsyncHandler; + typedef Outcome OnsRegionListOutcome; + typedef std::future OnsRegionListOutcomeCallable; + typedef std::function&)> OnsRegionListAsyncHandler; + typedef Outcome OnsTopicListOutcome; + typedef std::future OnsTopicListOutcomeCallable; + typedef std::function&)> OnsTopicListAsyncHandler; + typedef Outcome OnsConsumerAccumulateOutcome; + typedef std::future OnsConsumerAccumulateOutcomeCallable; + typedef std::function&)> OnsConsumerAccumulateAsyncHandler; + typedef Outcome OnsMessageSendOutcome; + typedef std::future OnsMessageSendOutcomeCallable; + typedef std::function&)> OnsMessageSendAsyncHandler; + typedef Outcome OnsMqttQueryClientByGroupIdOutcome; + typedef std::future OnsMqttQueryClientByGroupIdOutcomeCallable; + typedef std::function&)> OnsMqttQueryClientByGroupIdAsyncHandler; + typedef Outcome OnsGroupConsumerUpdateOutcome; + typedef std::future OnsGroupConsumerUpdateOutcomeCallable; + typedef std::function&)> OnsGroupConsumerUpdateAsyncHandler; + typedef Outcome OnsMessageTraceOutcome; + typedef std::future OnsMessageTraceOutcomeCallable; + typedef std::function&)> OnsMessageTraceAsyncHandler; + typedef Outcome OnsConsumerTimeSpanOutcome; + typedef std::future OnsConsumerTimeSpanOutcomeCallable; + typedef std::function&)> OnsConsumerTimeSpanAsyncHandler; + typedef Outcome OnsGroupListOutcome; + typedef std::future OnsGroupListOutcomeCallable; + typedef std::function&)> OnsGroupListAsyncHandler; + typedef Outcome OnsGroupSubDetailOutcome; + typedef std::future OnsGroupSubDetailOutcomeCallable; + typedef std::function&)> OnsGroupSubDetailAsyncHandler; + typedef Outcome OnsTraceGetResultOutcome; + typedef std::future OnsTraceGetResultOutcomeCallable; + typedef std::function&)> OnsTraceGetResultAsyncHandler; + typedef Outcome OnsTopicCreateOutcome; + typedef std::future OnsTopicCreateOutcomeCallable; + typedef std::function&)> OnsTopicCreateAsyncHandler; + typedef Outcome OnsDLQMessagePageQueryByGroupIdOutcome; + typedef std::future OnsDLQMessagePageQueryByGroupIdOutcomeCallable; + typedef std::function&)> OnsDLQMessagePageQueryByGroupIdAsyncHandler; + typedef Outcome OnsGroupDeleteOutcome; + typedef std::future OnsGroupDeleteOutcomeCallable; + typedef std::function&)> OnsGroupDeleteAsyncHandler; + typedef Outcome OnsInstanceUpdateOutcome; + typedef std::future OnsInstanceUpdateOutcomeCallable; + typedef std::function&)> OnsInstanceUpdateAsyncHandler; + typedef Outcome OnsMessagePageQueryByTopicOutcome; + typedef std::future OnsMessagePageQueryByTopicOutcomeCallable; + typedef std::function&)> OnsMessagePageQueryByTopicAsyncHandler; + typedef Outcome OnsTrendTopicInputTpsOutcome; + typedef std::future OnsTrendTopicInputTpsOutcomeCallable; + typedef std::function&)> OnsTrendTopicInputTpsAsyncHandler; + typedef Outcome OnsGroupCreateOutcome; + typedef std::future OnsGroupCreateOutcomeCallable; + typedef std::function&)> OnsGroupCreateAsyncHandler; + typedef Outcome OnsDLQMessageResendByIdOutcome; + typedef std::future OnsDLQMessageResendByIdOutcomeCallable; + typedef std::function&)> OnsDLQMessageResendByIdAsyncHandler; + typedef Outcome OnsTrendGroupOutputTpsOutcome; + typedef std::future OnsTrendGroupOutputTpsOutcomeCallable; + typedef std::function&)> OnsTrendGroupOutputTpsAsyncHandler; + typedef Outcome OnsMqttQueryClientByClientIdOutcome; + typedef std::future OnsMqttQueryClientByClientIdOutcomeCallable; + typedef std::function&)> OnsMqttQueryClientByClientIdAsyncHandler; + typedef Outcome OnsMessagePushOutcome; + typedef std::future OnsMessagePushOutcomeCallable; + typedef std::function&)> OnsMessagePushAsyncHandler; + typedef Outcome OnsConsumerStatusOutcome; + typedef std::future OnsConsumerStatusOutcomeCallable; + typedef std::function&)> OnsConsumerStatusAsyncHandler; + typedef Outcome OnsWarnDeleteOutcome; + typedef std::future OnsWarnDeleteOutcomeCallable; + typedef std::function&)> OnsWarnDeleteAsyncHandler; + typedef Outcome OnsMqttQueryMsgTransTrendOutcome; + typedef std::future OnsMqttQueryMsgTransTrendOutcomeCallable; + typedef std::function&)> OnsMqttQueryMsgTransTrendAsyncHandler; + typedef Outcome OnsConsumerResetOffsetOutcome; + typedef std::future OnsConsumerResetOffsetOutcomeCallable; + typedef std::function&)> OnsConsumerResetOffsetAsyncHandler; + typedef Outcome OnsMessageGetByMsgIdOutcome; + typedef std::future OnsMessageGetByMsgIdOutcomeCallable; + typedef std::function&)> OnsMessageGetByMsgIdAsyncHandler; + typedef Outcome OnsInstanceBaseInfoOutcome; + typedef std::future OnsInstanceBaseInfoOutcomeCallable; + typedef std::function&)> OnsInstanceBaseInfoAsyncHandler; + typedef Outcome OnsMqttGroupIdDeleteOutcome; + typedef std::future OnsMqttGroupIdDeleteOutcomeCallable; + typedef std::function&)> OnsMqttGroupIdDeleteAsyncHandler; + typedef Outcome OnsInstanceInServiceListOutcome; + typedef std::future OnsInstanceInServiceListOutcomeCallable; + typedef std::function&)> OnsInstanceInServiceListAsyncHandler; + typedef Outcome OnsMqttGroupIdListOutcome; + typedef std::future OnsMqttGroupIdListOutcomeCallable; + typedef std::function&)> OnsMqttGroupIdListAsyncHandler; + typedef Outcome OnsDLQMessageGetByIdOutcome; + typedef std::future OnsDLQMessageGetByIdOutcomeCallable; + typedef std::function&)> OnsDLQMessageGetByIdAsyncHandler; + typedef Outcome OnsInstanceCreateOutcome; + typedef std::future OnsInstanceCreateOutcomeCallable; + typedef std::function&)> OnsInstanceCreateAsyncHandler; + typedef Outcome OnsWarnCreateOutcome; + typedef std::future OnsWarnCreateOutcomeCallable; + typedef std::function&)> OnsWarnCreateAsyncHandler; + typedef Outcome OnsTopicStatusOutcome; + typedef std::future OnsTopicStatusOutcomeCallable; + typedef std::function&)> OnsTopicStatusAsyncHandler; + typedef Outcome OnsMqttGroupIdCreateOutcome; + typedef std::future OnsMqttGroupIdCreateOutcomeCallable; + typedef std::function&)> OnsMqttGroupIdCreateAsyncHandler; + typedef Outcome OnsMqttQueryClientByTopicOutcome; + typedef std::future OnsMqttQueryClientByTopicOutcomeCallable; + typedef std::function&)> OnsMqttQueryClientByTopicAsyncHandler; + typedef Outcome OnsMessageGetByKeyOutcome; + typedef std::future OnsMessageGetByKeyOutcomeCallable; + typedef std::function&)> OnsMessageGetByKeyAsyncHandler; + + OnsClient(const Credentials &credentials, const ClientConfiguration &configuration); + OnsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + OnsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~OnsClient(); + OnsTopicSubDetailOutcome onsTopicSubDetail(const Model::OnsTopicSubDetailRequest &request)const; + void onsTopicSubDetailAsync(const Model::OnsTopicSubDetailRequest& request, const OnsTopicSubDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTopicSubDetailOutcomeCallable onsTopicSubDetailCallable(const Model::OnsTopicSubDetailRequest& request) const; + OnsMqttQueryHistoryOnlineOutcome onsMqttQueryHistoryOnline(const Model::OnsMqttQueryHistoryOnlineRequest &request)const; + void onsMqttQueryHistoryOnlineAsync(const Model::OnsMqttQueryHistoryOnlineRequest& request, const OnsMqttQueryHistoryOnlineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMqttQueryHistoryOnlineOutcomeCallable onsMqttQueryHistoryOnlineCallable(const Model::OnsMqttQueryHistoryOnlineRequest& request) const; + OnsInstanceDeleteOutcome onsInstanceDelete(const Model::OnsInstanceDeleteRequest &request)const; + void onsInstanceDeleteAsync(const Model::OnsInstanceDeleteRequest& request, const OnsInstanceDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsInstanceDeleteOutcomeCallable onsInstanceDeleteCallable(const Model::OnsInstanceDeleteRequest& request) const; + OnsTopicDeleteOutcome onsTopicDelete(const Model::OnsTopicDeleteRequest &request)const; + void onsTopicDeleteAsync(const Model::OnsTopicDeleteRequest& request, const OnsTopicDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTopicDeleteOutcomeCallable onsTopicDeleteCallable(const Model::OnsTopicDeleteRequest& request) const; + OnsTopicUpdateOutcome onsTopicUpdate(const Model::OnsTopicUpdateRequest &request)const; + void onsTopicUpdateAsync(const Model::OnsTopicUpdateRequest& request, const OnsTopicUpdateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTopicUpdateOutcomeCallable onsTopicUpdateCallable(const Model::OnsTopicUpdateRequest& request) const; + OnsTraceQueryByMsgKeyOutcome onsTraceQueryByMsgKey(const Model::OnsTraceQueryByMsgKeyRequest &request)const; + void onsTraceQueryByMsgKeyAsync(const Model::OnsTraceQueryByMsgKeyRequest& request, const OnsTraceQueryByMsgKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTraceQueryByMsgKeyOutcomeCallable onsTraceQueryByMsgKeyCallable(const Model::OnsTraceQueryByMsgKeyRequest& request) const; + OnsConsumerGetConnectionOutcome onsConsumerGetConnection(const Model::OnsConsumerGetConnectionRequest &request)const; + void onsConsumerGetConnectionAsync(const Model::OnsConsumerGetConnectionRequest& request, const OnsConsumerGetConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsConsumerGetConnectionOutcomeCallable onsConsumerGetConnectionCallable(const Model::OnsConsumerGetConnectionRequest& request) const; + OnsTraceQueryByMsgIdOutcome onsTraceQueryByMsgId(const Model::OnsTraceQueryByMsgIdRequest &request)const; + void onsTraceQueryByMsgIdAsync(const Model::OnsTraceQueryByMsgIdRequest& request, const OnsTraceQueryByMsgIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTraceQueryByMsgIdOutcomeCallable onsTraceQueryByMsgIdCallable(const Model::OnsTraceQueryByMsgIdRequest& request) const; + OnsRegionListOutcome onsRegionList(const Model::OnsRegionListRequest &request)const; + void onsRegionListAsync(const Model::OnsRegionListRequest& request, const OnsRegionListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsRegionListOutcomeCallable onsRegionListCallable(const Model::OnsRegionListRequest& request) const; + OnsTopicListOutcome onsTopicList(const Model::OnsTopicListRequest &request)const; + void onsTopicListAsync(const Model::OnsTopicListRequest& request, const OnsTopicListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTopicListOutcomeCallable onsTopicListCallable(const Model::OnsTopicListRequest& request) const; + OnsConsumerAccumulateOutcome onsConsumerAccumulate(const Model::OnsConsumerAccumulateRequest &request)const; + void onsConsumerAccumulateAsync(const Model::OnsConsumerAccumulateRequest& request, const OnsConsumerAccumulateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsConsumerAccumulateOutcomeCallable onsConsumerAccumulateCallable(const Model::OnsConsumerAccumulateRequest& request) const; + OnsMessageSendOutcome onsMessageSend(const Model::OnsMessageSendRequest &request)const; + void onsMessageSendAsync(const Model::OnsMessageSendRequest& request, const OnsMessageSendAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMessageSendOutcomeCallable onsMessageSendCallable(const Model::OnsMessageSendRequest& request) const; + OnsMqttQueryClientByGroupIdOutcome onsMqttQueryClientByGroupId(const Model::OnsMqttQueryClientByGroupIdRequest &request)const; + void onsMqttQueryClientByGroupIdAsync(const Model::OnsMqttQueryClientByGroupIdRequest& request, const OnsMqttQueryClientByGroupIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMqttQueryClientByGroupIdOutcomeCallable onsMqttQueryClientByGroupIdCallable(const Model::OnsMqttQueryClientByGroupIdRequest& request) const; + OnsGroupConsumerUpdateOutcome onsGroupConsumerUpdate(const Model::OnsGroupConsumerUpdateRequest &request)const; + void onsGroupConsumerUpdateAsync(const Model::OnsGroupConsumerUpdateRequest& request, const OnsGroupConsumerUpdateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsGroupConsumerUpdateOutcomeCallable onsGroupConsumerUpdateCallable(const Model::OnsGroupConsumerUpdateRequest& request) const; + OnsMessageTraceOutcome onsMessageTrace(const Model::OnsMessageTraceRequest &request)const; + void onsMessageTraceAsync(const Model::OnsMessageTraceRequest& request, const OnsMessageTraceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMessageTraceOutcomeCallable onsMessageTraceCallable(const Model::OnsMessageTraceRequest& request) const; + OnsConsumerTimeSpanOutcome onsConsumerTimeSpan(const Model::OnsConsumerTimeSpanRequest &request)const; + void onsConsumerTimeSpanAsync(const Model::OnsConsumerTimeSpanRequest& request, const OnsConsumerTimeSpanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsConsumerTimeSpanOutcomeCallable onsConsumerTimeSpanCallable(const Model::OnsConsumerTimeSpanRequest& request) const; + OnsGroupListOutcome onsGroupList(const Model::OnsGroupListRequest &request)const; + void onsGroupListAsync(const Model::OnsGroupListRequest& request, const OnsGroupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsGroupListOutcomeCallable onsGroupListCallable(const Model::OnsGroupListRequest& request) const; + OnsGroupSubDetailOutcome onsGroupSubDetail(const Model::OnsGroupSubDetailRequest &request)const; + void onsGroupSubDetailAsync(const Model::OnsGroupSubDetailRequest& request, const OnsGroupSubDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsGroupSubDetailOutcomeCallable onsGroupSubDetailCallable(const Model::OnsGroupSubDetailRequest& request) const; + OnsTraceGetResultOutcome onsTraceGetResult(const Model::OnsTraceGetResultRequest &request)const; + void onsTraceGetResultAsync(const Model::OnsTraceGetResultRequest& request, const OnsTraceGetResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTraceGetResultOutcomeCallable onsTraceGetResultCallable(const Model::OnsTraceGetResultRequest& request) const; + OnsTopicCreateOutcome onsTopicCreate(const Model::OnsTopicCreateRequest &request)const; + void onsTopicCreateAsync(const Model::OnsTopicCreateRequest& request, const OnsTopicCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTopicCreateOutcomeCallable onsTopicCreateCallable(const Model::OnsTopicCreateRequest& request) const; + OnsDLQMessagePageQueryByGroupIdOutcome onsDLQMessagePageQueryByGroupId(const Model::OnsDLQMessagePageQueryByGroupIdRequest &request)const; + void onsDLQMessagePageQueryByGroupIdAsync(const Model::OnsDLQMessagePageQueryByGroupIdRequest& request, const OnsDLQMessagePageQueryByGroupIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsDLQMessagePageQueryByGroupIdOutcomeCallable onsDLQMessagePageQueryByGroupIdCallable(const Model::OnsDLQMessagePageQueryByGroupIdRequest& request) const; + OnsGroupDeleteOutcome onsGroupDelete(const Model::OnsGroupDeleteRequest &request)const; + void onsGroupDeleteAsync(const Model::OnsGroupDeleteRequest& request, const OnsGroupDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsGroupDeleteOutcomeCallable onsGroupDeleteCallable(const Model::OnsGroupDeleteRequest& request) const; + OnsInstanceUpdateOutcome onsInstanceUpdate(const Model::OnsInstanceUpdateRequest &request)const; + void onsInstanceUpdateAsync(const Model::OnsInstanceUpdateRequest& request, const OnsInstanceUpdateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsInstanceUpdateOutcomeCallable onsInstanceUpdateCallable(const Model::OnsInstanceUpdateRequest& request) const; + OnsMessagePageQueryByTopicOutcome onsMessagePageQueryByTopic(const Model::OnsMessagePageQueryByTopicRequest &request)const; + void onsMessagePageQueryByTopicAsync(const Model::OnsMessagePageQueryByTopicRequest& request, const OnsMessagePageQueryByTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMessagePageQueryByTopicOutcomeCallable onsMessagePageQueryByTopicCallable(const Model::OnsMessagePageQueryByTopicRequest& request) const; + OnsTrendTopicInputTpsOutcome onsTrendTopicInputTps(const Model::OnsTrendTopicInputTpsRequest &request)const; + void onsTrendTopicInputTpsAsync(const Model::OnsTrendTopicInputTpsRequest& request, const OnsTrendTopicInputTpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTrendTopicInputTpsOutcomeCallable onsTrendTopicInputTpsCallable(const Model::OnsTrendTopicInputTpsRequest& request) const; + OnsGroupCreateOutcome onsGroupCreate(const Model::OnsGroupCreateRequest &request)const; + void onsGroupCreateAsync(const Model::OnsGroupCreateRequest& request, const OnsGroupCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsGroupCreateOutcomeCallable onsGroupCreateCallable(const Model::OnsGroupCreateRequest& request) const; + OnsDLQMessageResendByIdOutcome onsDLQMessageResendById(const Model::OnsDLQMessageResendByIdRequest &request)const; + void onsDLQMessageResendByIdAsync(const Model::OnsDLQMessageResendByIdRequest& request, const OnsDLQMessageResendByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsDLQMessageResendByIdOutcomeCallable onsDLQMessageResendByIdCallable(const Model::OnsDLQMessageResendByIdRequest& request) const; + OnsTrendGroupOutputTpsOutcome onsTrendGroupOutputTps(const Model::OnsTrendGroupOutputTpsRequest &request)const; + void onsTrendGroupOutputTpsAsync(const Model::OnsTrendGroupOutputTpsRequest& request, const OnsTrendGroupOutputTpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTrendGroupOutputTpsOutcomeCallable onsTrendGroupOutputTpsCallable(const Model::OnsTrendGroupOutputTpsRequest& request) const; + OnsMqttQueryClientByClientIdOutcome onsMqttQueryClientByClientId(const Model::OnsMqttQueryClientByClientIdRequest &request)const; + void onsMqttQueryClientByClientIdAsync(const Model::OnsMqttQueryClientByClientIdRequest& request, const OnsMqttQueryClientByClientIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMqttQueryClientByClientIdOutcomeCallable onsMqttQueryClientByClientIdCallable(const Model::OnsMqttQueryClientByClientIdRequest& request) const; + OnsMessagePushOutcome onsMessagePush(const Model::OnsMessagePushRequest &request)const; + void onsMessagePushAsync(const Model::OnsMessagePushRequest& request, const OnsMessagePushAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMessagePushOutcomeCallable onsMessagePushCallable(const Model::OnsMessagePushRequest& request) const; + OnsConsumerStatusOutcome onsConsumerStatus(const Model::OnsConsumerStatusRequest &request)const; + void onsConsumerStatusAsync(const Model::OnsConsumerStatusRequest& request, const OnsConsumerStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsConsumerStatusOutcomeCallable onsConsumerStatusCallable(const Model::OnsConsumerStatusRequest& request) const; + OnsWarnDeleteOutcome onsWarnDelete(const Model::OnsWarnDeleteRequest &request)const; + void onsWarnDeleteAsync(const Model::OnsWarnDeleteRequest& request, const OnsWarnDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsWarnDeleteOutcomeCallable onsWarnDeleteCallable(const Model::OnsWarnDeleteRequest& request) const; + OnsMqttQueryMsgTransTrendOutcome onsMqttQueryMsgTransTrend(const Model::OnsMqttQueryMsgTransTrendRequest &request)const; + void onsMqttQueryMsgTransTrendAsync(const Model::OnsMqttQueryMsgTransTrendRequest& request, const OnsMqttQueryMsgTransTrendAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMqttQueryMsgTransTrendOutcomeCallable onsMqttQueryMsgTransTrendCallable(const Model::OnsMqttQueryMsgTransTrendRequest& request) const; + OnsConsumerResetOffsetOutcome onsConsumerResetOffset(const Model::OnsConsumerResetOffsetRequest &request)const; + void onsConsumerResetOffsetAsync(const Model::OnsConsumerResetOffsetRequest& request, const OnsConsumerResetOffsetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsConsumerResetOffsetOutcomeCallable onsConsumerResetOffsetCallable(const Model::OnsConsumerResetOffsetRequest& request) const; + OnsMessageGetByMsgIdOutcome onsMessageGetByMsgId(const Model::OnsMessageGetByMsgIdRequest &request)const; + void onsMessageGetByMsgIdAsync(const Model::OnsMessageGetByMsgIdRequest& request, const OnsMessageGetByMsgIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMessageGetByMsgIdOutcomeCallable onsMessageGetByMsgIdCallable(const Model::OnsMessageGetByMsgIdRequest& request) const; + OnsInstanceBaseInfoOutcome onsInstanceBaseInfo(const Model::OnsInstanceBaseInfoRequest &request)const; + void onsInstanceBaseInfoAsync(const Model::OnsInstanceBaseInfoRequest& request, const OnsInstanceBaseInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsInstanceBaseInfoOutcomeCallable onsInstanceBaseInfoCallable(const Model::OnsInstanceBaseInfoRequest& request) const; + OnsMqttGroupIdDeleteOutcome onsMqttGroupIdDelete(const Model::OnsMqttGroupIdDeleteRequest &request)const; + void onsMqttGroupIdDeleteAsync(const Model::OnsMqttGroupIdDeleteRequest& request, const OnsMqttGroupIdDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMqttGroupIdDeleteOutcomeCallable onsMqttGroupIdDeleteCallable(const Model::OnsMqttGroupIdDeleteRequest& request) const; + OnsInstanceInServiceListOutcome onsInstanceInServiceList(const Model::OnsInstanceInServiceListRequest &request)const; + void onsInstanceInServiceListAsync(const Model::OnsInstanceInServiceListRequest& request, const OnsInstanceInServiceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsInstanceInServiceListOutcomeCallable onsInstanceInServiceListCallable(const Model::OnsInstanceInServiceListRequest& request) const; + OnsMqttGroupIdListOutcome onsMqttGroupIdList(const Model::OnsMqttGroupIdListRequest &request)const; + void onsMqttGroupIdListAsync(const Model::OnsMqttGroupIdListRequest& request, const OnsMqttGroupIdListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMqttGroupIdListOutcomeCallable onsMqttGroupIdListCallable(const Model::OnsMqttGroupIdListRequest& request) const; + OnsDLQMessageGetByIdOutcome onsDLQMessageGetById(const Model::OnsDLQMessageGetByIdRequest &request)const; + void onsDLQMessageGetByIdAsync(const Model::OnsDLQMessageGetByIdRequest& request, const OnsDLQMessageGetByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsDLQMessageGetByIdOutcomeCallable onsDLQMessageGetByIdCallable(const Model::OnsDLQMessageGetByIdRequest& request) const; + OnsInstanceCreateOutcome onsInstanceCreate(const Model::OnsInstanceCreateRequest &request)const; + void onsInstanceCreateAsync(const Model::OnsInstanceCreateRequest& request, const OnsInstanceCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsInstanceCreateOutcomeCallable onsInstanceCreateCallable(const Model::OnsInstanceCreateRequest& request) const; + OnsWarnCreateOutcome onsWarnCreate(const Model::OnsWarnCreateRequest &request)const; + void onsWarnCreateAsync(const Model::OnsWarnCreateRequest& request, const OnsWarnCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsWarnCreateOutcomeCallable onsWarnCreateCallable(const Model::OnsWarnCreateRequest& request) const; + OnsTopicStatusOutcome onsTopicStatus(const Model::OnsTopicStatusRequest &request)const; + void onsTopicStatusAsync(const Model::OnsTopicStatusRequest& request, const OnsTopicStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTopicStatusOutcomeCallable onsTopicStatusCallable(const Model::OnsTopicStatusRequest& request) const; + OnsMqttGroupIdCreateOutcome onsMqttGroupIdCreate(const Model::OnsMqttGroupIdCreateRequest &request)const; + void onsMqttGroupIdCreateAsync(const Model::OnsMqttGroupIdCreateRequest& request, const OnsMqttGroupIdCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMqttGroupIdCreateOutcomeCallable onsMqttGroupIdCreateCallable(const Model::OnsMqttGroupIdCreateRequest& request) const; + OnsMqttQueryClientByTopicOutcome onsMqttQueryClientByTopic(const Model::OnsMqttQueryClientByTopicRequest &request)const; + void onsMqttQueryClientByTopicAsync(const Model::OnsMqttQueryClientByTopicRequest& request, const OnsMqttQueryClientByTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMqttQueryClientByTopicOutcomeCallable onsMqttQueryClientByTopicCallable(const Model::OnsMqttQueryClientByTopicRequest& request) const; + OnsMessageGetByKeyOutcome onsMessageGetByKey(const Model::OnsMessageGetByKeyRequest &request)const; + void onsMessageGetByKeyAsync(const Model::OnsMessageGetByKeyRequest& request, const OnsMessageGetByKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsMessageGetByKeyOutcomeCallable onsMessageGetByKeyCallable(const Model::OnsMessageGetByKeyRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_ONS_ONSCLIENT_H_ diff --git a/ons/include/alibabacloud/ons/OnsExport.h b/ons/include/alibabacloud/ons/OnsExport.h new file mode 100644 index 000000000..14fca8496 --- /dev/null +++ b/ons/include/alibabacloud/ons/OnsExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_ONSEXPORT_H_ +#define ALIBABACLOUD_ONS_ONSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ONS_LIBRARY) +# define ALIBABACLOUD_ONS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ONS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ONS_EXPORT +#endif + +#endif // !ALIBABACLOUD_ONS_ONSEXPORT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h new file mode 100644 index 000000000..d2b06757c --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsConsumerAccumulateRequest : public RpcServiceRequest + { + + public: + OnsConsumerAccumulateRequest(); + ~OnsConsumerAccumulateRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + bool getDetail()const; + void setDetail(bool detail); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + bool detail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateResult.h b/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateResult.h new file mode 100644 index 000000000..55f1bb178 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsConsumerAccumulateResult : public ServiceResult + { + public: + struct Data + { + struct DetailInTopicDo + { + long lastTimestamp; + long totalDiff; + std::string topic; + long delayTime; + }; + float consumeTps; + long lastTimestamp; + long totalDiff; + bool online; + long delayTime; + std::vector detailInTopicList; + }; + + + OnsConsumerAccumulateResult(); + explicit OnsConsumerAccumulateResult(const std::string &payload); + ~OnsConsumerAccumulateResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h new file mode 100644 index 000000000..cf6fad91c --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsConsumerGetConnectionRequest : public RpcServiceRequest + { + + public: + OnsConsumerGetConnectionRequest(); + ~OnsConsumerGetConnectionRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionResult.h b/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionResult.h new file mode 100644 index 000000000..c8d06f776 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionResult.h @@ -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_ONS_MODEL_ONSCONSUMERGETCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsConsumerGetConnectionResult : public ServiceResult + { + public: + struct Data + { + struct ConnectionDo + { + std::string clientAddr; + std::string language; + std::string version; + std::string clientId; + }; + std::vector connectionList; + }; + + + OnsConsumerGetConnectionResult(); + explicit OnsConsumerGetConnectionResult(const std::string &payload); + ~OnsConsumerGetConnectionResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h new file mode 100644 index 000000000..f1280605b --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsConsumerResetOffsetRequest : public RpcServiceRequest + { + + public: + OnsConsumerResetOffsetRequest(); + ~OnsConsumerResetOffsetRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getTopic()const; + void setTopic(const std::string& topic); + long getResetTimestamp()const; + void setResetTimestamp(long resetTimestamp); + int getType()const; + void setType(int type); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + std::string topic_; + long resetTimestamp_; + int type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetResult.h b/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetResult.h new file mode 100644 index 000000000..51a904aca --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsConsumerResetOffsetResult : public ServiceResult + { + public: + + + OnsConsumerResetOffsetResult(); + explicit OnsConsumerResetOffsetResult(const std::string &payload); + ~OnsConsumerResetOffsetResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h new file mode 100644 index 000000000..9f79b159f --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsConsumerStatusRequest : public RpcServiceRequest + { + + public: + OnsConsumerStatusRequest(); + ~OnsConsumerStatusRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + bool getNeedJstack()const; + void setNeedJstack(bool needJstack); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + bool getDetail()const; + void setDetail(bool detail); + + private: + long preventCache_; + std::string instanceId_; + bool needJstack_; + std::string groupId_; + bool detail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerStatusResult.h b/ons/include/alibabacloud/ons/model/OnsConsumerStatusResult.h new file mode 100644 index 000000000..2ffb5c451 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsConsumerStatusResult.h @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsConsumerStatusResult : public ServiceResult + { + public: + struct Data + { + struct ConnectionDo + { + std::string clientAddr; + std::string language; + std::string version; + std::string clientId; + }; + struct DetailInTopicDo + { + long lastTimestamp; + long totalDiff; + std::string topic; + long delayTime; + }; + struct ConsumerConnectionInfoDo + { + struct SubscriptionData + { + std::string subString; + std::vector tagsSet; + std::string topic; + long subVersion; + }; + struct ConsumerRunningDataDo + { + float okTps; + float rt; + float failedTps; + std::string topic; + long failedCountPerHour; + std::string groupId; + }; + struct ThreadTrackDo + { + std::vector trackList; + std::string thread; + }; + long lastTimeStamp; + std::vector runningDataList; + std::string consumeModel; + int threadCount; + std::string language; + std::string consumeType; + std::vector subscriptionSet; + std::string version; + std::string connection; + std::string clientId; + long startTimeStamp; + std::vector jstack; + }; + std::vector consumerConnectionInfoList; + std::string consumeModel; + float consumeTps; + long lastTimestamp; + std::string instanceId; + bool subscriptionSame; + bool rebalanceOK; + long totalDiff; + std::vector connectionSet; + bool online; + long delayTime; + std::vector detailInTopicList; + }; + + + OnsConsumerStatusResult(); + explicit OnsConsumerStatusResult(const std::string &payload); + ~OnsConsumerStatusResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h new file mode 100644 index 000000000..8269744c9 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsConsumerTimeSpanRequest : public RpcServiceRequest + { + + public: + OnsConsumerTimeSpanRequest(); + ~OnsConsumerTimeSpanRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanResult.h b/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanResult.h new file mode 100644 index 000000000..1b52d1fce --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanResult.h @@ -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_ONS_MODEL_ONSCONSUMERTIMESPANRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsConsumerTimeSpanResult : public ServiceResult + { + public: + struct Data + { + long consumeTimeStamp; + std::string instanceId; + long minTimeStamp; + long maxTimeStamp; + std::string topic; + }; + + + OnsConsumerTimeSpanResult(); + explicit OnsConsumerTimeSpanResult(const std::string &payload); + ~OnsConsumerTimeSpanResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h b/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h new file mode 100644 index 000000000..b956359cd --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsDLQMessageGetByIdRequest : public RpcServiceRequest + { + + public: + OnsDLQMessageGetByIdRequest(); + ~OnsDLQMessageGetByIdRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getMsgId()const; + void setMsgId(const std::string& msgId); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + std::string msgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdResult.h b/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdResult.h new file mode 100644 index 000000000..e10ecfc57 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsDLQMessageGetByIdResult : public ServiceResult + { + public: + struct Data + { + struct MessageProperty + { + std::string value; + std::string name; + }; + long bornTimestamp; + std::string offsetId; + std::string instanceId; + int storeSize; + std::string bornHost; + int bodyCRC; + int flag; + std::string msgId; + long storeTimestamp; + std::string storeHost; + std::vector propertyList; + std::string topic; + std::string body; + int reconsumeTimes; + }; + + + OnsDLQMessageGetByIdResult(); + explicit OnsDLQMessageGetByIdResult(const std::string &payload); + ~OnsDLQMessageGetByIdResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h b/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h new file mode 100644 index 000000000..7c71a96a4 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsDLQMessagePageQueryByGroupIdRequest : public RpcServiceRequest + { + + public: + OnsDLQMessagePageQueryByGroupIdRequest(); + ~OnsDLQMessagePageQueryByGroupIdRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + int getPageSize()const; + void setPageSize(int pageSize); + long getEndTime()const; + void setEndTime(long endTime); + long getBeginTime()const; + void setBeginTime(long beginTime); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + int pageSize_; + long endTime_; + long beginTime_; + int currentPage_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdResult.h b/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdResult.h new file mode 100644 index 000000000..c1be9640e --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsDLQMessagePageQueryByGroupIdResult : public ServiceResult + { + public: + struct MsgFoundDo + { + struct OnsRestMessageDo + { + struct MessageProperty + { + std::string value; + std::string name; + }; + long bornTimestamp; + std::string offsetId; + std::string instanceId; + int storeSize; + std::string bornHost; + int bodyCRC; + int flag; + std::string msgId; + long storeTimestamp; + std::string storeHost; + std::vector propertyList; + std::string topic; + std::string body; + int reconsumeTimes; + }; + std::string taskId; + long currentPage; + long maxPageCount; + std::vector msgFoundList; + }; + + + OnsDLQMessagePageQueryByGroupIdResult(); + explicit OnsDLQMessagePageQueryByGroupIdResult(const std::string &payload); + ~OnsDLQMessagePageQueryByGroupIdResult(); + MsgFoundDo getMsgFoundDo()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + MsgFoundDo msgFoundDo_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h b/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h new file mode 100644 index 000000000..992d71d74 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsDLQMessageResendByIdRequest : public RpcServiceRequest + { + + public: + OnsDLQMessageResendByIdRequest(); + ~OnsDLQMessageResendByIdRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getMsgId()const; + void setMsgId(const std::string& msgId); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + std::string msgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdResult.h b/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdResult.h new file mode 100644 index 000000000..f50768386 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsDLQMessageResendByIdResult : public ServiceResult + { + public: + + + OnsDLQMessageResendByIdResult(); + explicit OnsDLQMessageResendByIdResult(const std::string &payload); + ~OnsDLQMessageResendByIdResult(); + std::vector getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h new file mode 100644 index 000000000..a85f9fd1a --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsGroupConsumerUpdateRequest : public RpcServiceRequest + { + + public: + OnsGroupConsumerUpdateRequest(); + ~OnsGroupConsumerUpdateRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + bool getReadEnable()const; + void setReadEnable(bool readEnable); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + + private: + long preventCache_; + bool readEnable_; + std::string instanceId_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateResult.h b/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateResult.h new file mode 100644 index 000000000..2acc78130 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsGroupConsumerUpdateResult : public ServiceResult + { + public: + + + OnsGroupConsumerUpdateResult(); + explicit OnsGroupConsumerUpdateResult(const std::string &payload); + ~OnsGroupConsumerUpdateResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h new file mode 100644 index 000000000..78a39f3ab --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsGroupCreateRequest : public RpcServiceRequest + { + + public: + OnsGroupCreateRequest(); + ~OnsGroupCreateRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getRemark()const; + void setRemark(const std::string& remark); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + std::string remark_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsGroupCreateResult.h b/ons/include/alibabacloud/ons/model/OnsGroupCreateResult.h new file mode 100644 index 000000000..c6a3469ad --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsGroupCreateResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsGroupCreateResult : public ServiceResult + { + public: + + + OnsGroupCreateResult(); + explicit OnsGroupCreateResult(const std::string &payload); + ~OnsGroupCreateResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h new file mode 100644 index 000000000..5361da619 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsGroupDeleteRequest : public RpcServiceRequest + { + + public: + OnsGroupDeleteRequest(); + ~OnsGroupDeleteRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsGroupDeleteResult.h b/ons/include/alibabacloud/ons/model/OnsGroupDeleteResult.h new file mode 100644 index 000000000..ea4300657 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsGroupDeleteResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsGroupDeleteResult : public ServiceResult + { + public: + + + OnsGroupDeleteResult(); + explicit OnsGroupDeleteResult(const std::string &payload); + ~OnsGroupDeleteResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h new file mode 100644 index 000000000..62466e646 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsGroupListRequest : public RpcServiceRequest + { + + public: + OnsGroupListRequest(); + ~OnsGroupListRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsGroupListResult.h b/ons/include/alibabacloud/ons/model/OnsGroupListResult.h new file mode 100644 index 000000000..c29c82770 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsGroupListResult.h @@ -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_ONS_MODEL_ONSGROUPLISTRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsGroupListResult : public ServiceResult + { + public: + struct SubscribeInfoDo + { + std::string owner; + std::string instanceId; + long updateTime; + bool independentNaming; + std::string groupId; + std::string remark; + }; + + + OnsGroupListResult(); + explicit OnsGroupListResult(const std::string &payload); + ~OnsGroupListResult(); + std::vector getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h new file mode 100644 index 000000000..fff10928b --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsGroupSubDetailRequest : public RpcServiceRequest + { + + public: + OnsGroupSubDetailRequest(); + ~OnsGroupSubDetailRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsGroupSubDetailResult.h b/ons/include/alibabacloud/ons/model/OnsGroupSubDetailResult.h new file mode 100644 index 000000000..16ef64877 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsGroupSubDetailResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsGroupSubDetailResult : public ServiceResult + { + public: + struct Data + { + struct SubscriptionDataListItem + { + std::string subString; + std::string topic; + }; + std::string messageModel; + std::vector subscriptionDataList; + bool online; + std::string groupId; + }; + + + OnsGroupSubDetailResult(); + explicit OnsGroupSubDetailResult(const std::string &payload); + ~OnsGroupSubDetailResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h new file mode 100644 index 000000000..e6daacbd7 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFOREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsInstanceBaseInfoRequest : public RpcServiceRequest + { + + public: + OnsInstanceBaseInfoRequest(); + ~OnsInstanceBaseInfoRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long preventCache_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFOREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h new file mode 100644 index 000000000..e74534ef2 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFORESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsInstanceBaseInfoResult : public ServiceResult + { + public: + struct InstanceBaseInfo + { + struct Endpoints + { + std::string httpInternalEndpoint; + std::string tcpEndpoint; + std::string httpInternetEndpoint; + std::string httpInternetSecureEndpoint; + }; + Endpoints endpoints; + std::string instanceName; + std::string instanceId; + long releaseTime; + int instanceStatus; + bool independentNaming; + int instanceType; + }; + + + OnsInstanceBaseInfoResult(); + explicit OnsInstanceBaseInfoResult(const std::string &payload); + ~OnsInstanceBaseInfoResult(); + InstanceBaseInfo getInstanceBaseInfo()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + InstanceBaseInfo instanceBaseInfo_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFORESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h new file mode 100644 index 000000000..43315cd24 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsInstanceCreateRequest : public RpcServiceRequest + { + + public: + OnsInstanceCreateRequest(); + ~OnsInstanceCreateRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::string getRemark()const; + void setRemark(const std::string& remark); + + private: + long preventCache_; + std::string instanceName_; + std::string remark_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceCreateResult.h b/ons/include/alibabacloud/ons/model/OnsInstanceCreateResult.h new file mode 100644 index 000000000..24af87562 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsInstanceCreateResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsInstanceCreateResult : public ServiceResult + { + public: + struct Data + { + std::string instanceId; + int instanceType; + }; + + + OnsInstanceCreateResult(); + explicit OnsInstanceCreateResult(const std::string &payload); + ~OnsInstanceCreateResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h new file mode 100644 index 000000000..0555a622e --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsInstanceDeleteRequest : public RpcServiceRequest + { + + public: + OnsInstanceDeleteRequest(); + ~OnsInstanceDeleteRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long preventCache_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceDeleteResult.h b/ons/include/alibabacloud/ons/model/OnsInstanceDeleteResult.h new file mode 100644 index 000000000..95b918231 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsInstanceDeleteResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsInstanceDeleteResult : public ServiceResult + { + public: + + + OnsInstanceDeleteResult(); + explicit OnsInstanceDeleteResult(const std::string &payload); + ~OnsInstanceDeleteResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h new file mode 100644 index 000000000..2a8742134 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsInstanceInServiceListRequest : public RpcServiceRequest + { + + public: + OnsInstanceInServiceListRequest(); + ~OnsInstanceInServiceListRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + + private: + long preventCache_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListResult.h b/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListResult.h new file mode 100644 index 000000000..e5212eee5 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListResult.h @@ -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_ONS_MODEL_ONSINSTANCEINSERVICELISTRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsInstanceInServiceListResult : public ServiceResult + { + public: + struct InstanceVO + { + std::string instanceName; + std::string instanceId; + long releaseTime; + int instanceStatus; + bool independentNaming; + int instanceType; + }; + + + OnsInstanceInServiceListResult(); + explicit OnsInstanceInServiceListResult(const std::string &payload); + ~OnsInstanceInServiceListResult(); + std::vector getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h new file mode 100644 index 000000000..b8075595d --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsInstanceUpdateRequest : public RpcServiceRequest + { + + public: + OnsInstanceUpdateRequest(); + ~OnsInstanceUpdateRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRemark()const; + void setRemark(const std::string& remark); + + private: + long preventCache_; + std::string instanceName_; + std::string instanceId_; + std::string remark_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceUpdateResult.h b/ons/include/alibabacloud/ons/model/OnsInstanceUpdateResult.h new file mode 100644 index 000000000..80595b0e6 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsInstanceUpdateResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsInstanceUpdateResult : public ServiceResult + { + public: + + + OnsInstanceUpdateResult(); + explicit OnsInstanceUpdateResult(const std::string &payload); + ~OnsInstanceUpdateResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h new file mode 100644 index 000000000..887a94541 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessageGetByKeyRequest : public RpcServiceRequest + { + + public: + OnsMessageGetByKeyRequest(); + ~OnsMessageGetByKeyRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTopic()const; + void setTopic(const std::string& topic); + std::string getKey()const; + void setKey(const std::string& key); + + private: + long preventCache_; + std::string instanceId_; + std::string topic_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyResult.h b/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyResult.h new file mode 100644 index 000000000..e6fd556e3 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessageGetByKeyResult : public ServiceResult + { + public: + struct OnsRestMessageDo + { + struct MessageProperty + { + std::string value; + std::string name; + }; + long bornTimestamp; + std::string offsetId; + std::string instanceId; + int storeSize; + std::string bornHost; + int bodyCRC; + int flag; + std::string msgId; + long storeTimestamp; + std::string storeHost; + std::vector propertyList; + std::string topic; + std::string body; + int reconsumeTimes; + }; + + + OnsMessageGetByKeyResult(); + explicit OnsMessageGetByKeyResult(const std::string &payload); + ~OnsMessageGetByKeyResult(); + std::vector getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h new file mode 100644 index 000000000..00f1ff9d4 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessageGetByMsgIdRequest : public RpcServiceRequest + { + + public: + OnsMessageGetByMsgIdRequest(); + ~OnsMessageGetByMsgIdRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getMsgId()const; + void setMsgId(const std::string& msgId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + long preventCache_; + std::string instanceId_; + std::string msgId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdResult.h b/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdResult.h new file mode 100644 index 000000000..0d09f0c53 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessageGetByMsgIdResult : public ServiceResult + { + public: + struct Data + { + struct MessageProperty + { + std::string value; + std::string name; + }; + long bornTimestamp; + std::string offsetId; + std::string instanceId; + int storeSize; + std::string bornHost; + int bodyCRC; + int flag; + std::string msgId; + long storeTimestamp; + std::string storeHost; + std::vector propertyList; + std::string topic; + std::string body; + int reconsumeTimes; + }; + + + OnsMessageGetByMsgIdResult(); + explicit OnsMessageGetByMsgIdResult(const std::string &payload); + ~OnsMessageGetByMsgIdResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h b/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h new file mode 100644 index 000000000..978e8c03b --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessagePageQueryByTopicRequest : public RpcServiceRequest + { + + public: + OnsMessagePageQueryByTopicRequest(); + ~OnsMessagePageQueryByTopicRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTopic()const; + void setTopic(const std::string& topic); + long getEndTime()const; + void setEndTime(long endTime); + long getBeginTime()const; + void setBeginTime(long beginTime); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + long preventCache_; + std::string instanceId_; + int pageSize_; + std::string topic_; + long endTime_; + long beginTime_; + int currentPage_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicResult.h b/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicResult.h new file mode 100644 index 000000000..4aee4493b --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessagePageQueryByTopicResult : public ServiceResult + { + public: + struct MsgFoundDo + { + struct OnsRestMessageDo + { + struct MessageProperty + { + std::string value; + std::string name; + }; + long bornTimestamp; + std::string offsetId; + std::string instanceId; + int storeSize; + std::string bornHost; + int bodyCRC; + int flag; + std::string msgId; + long storeTimestamp; + std::string storeHost; + std::vector propertyList; + std::string topic; + std::string body; + int reconsumeTimes; + }; + std::string taskId; + long currentPage; + long maxPageCount; + std::vector msgFoundList; + }; + + + OnsMessagePageQueryByTopicResult(); + explicit OnsMessagePageQueryByTopicResult(const std::string &payload); + ~OnsMessagePageQueryByTopicResult(); + MsgFoundDo getMsgFoundDo()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + MsgFoundDo msgFoundDo_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h b/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h new file mode 100644 index 000000000..15fb93d1d --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessagePushRequest : public RpcServiceRequest + { + + public: + OnsMessagePushRequest(); + ~OnsMessagePushRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getClientId()const; + void setClientId(const std::string& clientId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getMsgId()const; + void setMsgId(const std::string& msgId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + long preventCache_; + std::string clientId_; + std::string instanceId_; + std::string groupId_; + std::string msgId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessagePushResult.h b/ons/include/alibabacloud/ons/model/OnsMessagePushResult.h new file mode 100644 index 000000000..9404b6ddf --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessagePushResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessagePushResult : public ServiceResult + { + public: + + + OnsMessagePushResult(); + explicit OnsMessagePushResult(const std::string &payload); + ~OnsMessagePushResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h new file mode 100644 index 000000000..6a8834aeb --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGESENDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGESENDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessageSendRequest : public RpcServiceRequest + { + + public: + OnsMessageSendRequest(); + ~OnsMessageSendRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTopic()const; + void setTopic(const std::string& topic); + std::string getTag()const; + void setTag(const std::string& tag); + std::string getMessage()const; + void setMessage(const std::string& message); + std::string getKey()const; + void setKey(const std::string& key); + + private: + long preventCache_; + std::string instanceId_; + std::string topic_; + std::string tag_; + std::string message_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGESENDREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessageSendResult.h b/ons/include/alibabacloud/ons/model/OnsMessageSendResult.h new file mode 100644 index 000000000..7bccc40b0 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessageSendResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGESENDRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGESENDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessageSendResult : public ServiceResult + { + public: + + + OnsMessageSendResult(); + explicit OnsMessageSendResult(const std::string &payload); + ~OnsMessageSendResult(); + std::string getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGESENDRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h new file mode 100644 index 000000000..a46154687 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessageTraceRequest : public RpcServiceRequest + { + + public: + OnsMessageTraceRequest(); + ~OnsMessageTraceRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTopic()const; + void setTopic(const std::string& topic); + std::string getMsgId()const; + void setMsgId(const std::string& msgId); + + private: + long preventCache_; + std::string instanceId_; + std::string topic_; + std::string msgId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMessageTraceResult.h b/ons/include/alibabacloud/ons/model/OnsMessageTraceResult.h new file mode 100644 index 000000000..02f6e1eb3 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMessageTraceResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMessageTraceResult : public ServiceResult + { + public: + struct MessageTrack + { + std::string exceptionDesc; + std::string instanceId; + std::string trackType; + std::string consumerGroup; + }; + + + OnsMessageTraceResult(); + explicit OnsMessageTraceResult(const std::string &payload); + ~OnsMessageTraceResult(); + std::vector getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h new file mode 100644 index 000000000..ee881e4b8 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDCREATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDCREATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttGroupIdCreateRequest : public RpcServiceRequest + { + + public: + OnsMqttGroupIdCreateRequest(); + ~OnsMqttGroupIdCreateRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + long preventCache_; + std::string instanceId_; + std::string regionId_; + std::string groupId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDCREATEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateResult.h b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateResult.h new file mode 100644 index 000000000..b85d36bcc --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDCREATERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDCREATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttGroupIdCreateResult : public ServiceResult + { + public: + + + OnsMqttGroupIdCreateResult(); + explicit OnsMqttGroupIdCreateResult(const std::string &payload); + ~OnsMqttGroupIdCreateResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDCREATERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h new file mode 100644 index 000000000..ae44f4dda --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDDELETEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDDELETEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttGroupIdDeleteRequest : public RpcServiceRequest + { + + public: + OnsMqttGroupIdDeleteRequest(); + ~OnsMqttGroupIdDeleteRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + + private: + long preventCache_; + std::string instanceId_; + std::string regionId_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDDELETEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteResult.h b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteResult.h new file mode 100644 index 000000000..2953b49cd --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDDELETERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDDELETERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttGroupIdDeleteResult : public ServiceResult + { + public: + + + OnsMqttGroupIdDeleteResult(); + explicit OnsMqttGroupIdDeleteResult(const std::string &payload); + ~OnsMqttGroupIdDeleteResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDDELETERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h new file mode 100644 index 000000000..de3d50d1b --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDLISTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttGroupIdListRequest : public RpcServiceRequest + { + + public: + OnsMqttGroupIdListRequest(); + ~OnsMqttGroupIdListRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long preventCache_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDLISTREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListResult.h b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListResult.h new file mode 100644 index 000000000..df517fe63 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDLISTRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttGroupIdListResult : public ServiceResult + { + public: + struct MqttGroupIdDo + { + int status; + std::string owner; + std::string instanceId; + long createTime; + long updateTime; + long id; + bool independentNaming; + int channelId; + std::string topic; + std::string groupId; + }; + + + OnsMqttGroupIdListResult(); + explicit OnsMqttGroupIdListResult(const std::string &payload); + ~OnsMqttGroupIdListResult(); + std::vector getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDLISTRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h new file mode 100644 index 000000000..4f44d9484 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYCLIENTIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYCLIENTIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryClientByClientIdRequest : public RpcServiceRequest + { + + public: + OnsMqttQueryClientByClientIdRequest(); + ~OnsMqttQueryClientByClientIdRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getClientId()const; + void setClientId(const std::string& clientId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long preventCache_; + std::string clientId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYCLIENTIDREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdResult.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdResult.h new file mode 100644 index 000000000..16f47d24d --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYCLIENTIDRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYCLIENTIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryClientByClientIdResult : public ServiceResult + { + public: + struct MqttClientInfoDo + { + struct SubscriptionDo + { + int qos; + std::string subTopic; + std::string parentTopic; + }; + std::string socketChannel; + std::vector subScriptonData; + std::string clientId; + bool online; + long lastTouch; + }; + + + OnsMqttQueryClientByClientIdResult(); + explicit OnsMqttQueryClientByClientIdResult(const std::string &payload); + ~OnsMqttQueryClientByClientIdResult(); + MqttClientInfoDo getMqttClientInfoDo()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + MqttClientInfoDo mqttClientInfoDo_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYCLIENTIDRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h new file mode 100644 index 000000000..eae4b95c3 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYGROUPIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYGROUPIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryClientByGroupIdRequest : public RpcServiceRequest + { + + public: + OnsMqttQueryClientByGroupIdRequest(); + ~OnsMqttQueryClientByGroupIdRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYGROUPIDREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdResult.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdResult.h new file mode 100644 index 000000000..0f7c2dfc5 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYGROUPIDRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYGROUPIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryClientByGroupIdResult : public ServiceResult + { + public: + struct MqttClientSetDo + { + long persistCount; + long onlineCount; + }; + + + OnsMqttQueryClientByGroupIdResult(); + explicit OnsMqttQueryClientByGroupIdResult(const std::string &payload); + ~OnsMqttQueryClientByGroupIdResult(); + MqttClientSetDo getMqttClientSetDo()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + MqttClientSetDo mqttClientSetDo_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYGROUPIDRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h new file mode 100644 index 000000000..a55f86d15 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYTOPICREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYTOPICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryClientByTopicRequest : public RpcServiceRequest + { + + public: + OnsMqttQueryClientByTopicRequest(); + ~OnsMqttQueryClientByTopicRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getParentTopic()const; + void setParentTopic(const std::string& parentTopic); + std::string getSubTopic()const; + void setSubTopic(const std::string& subTopic); + + private: + long preventCache_; + std::string instanceId_; + std::string parentTopic_; + std::string subTopic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYTOPICREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicResult.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicResult.h new file mode 100644 index 000000000..90e6aecd4 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYTOPICRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYTOPICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryClientByTopicResult : public ServiceResult + { + public: + struct MqttClientSetDo + { + long persistCount; + long onlineCount; + }; + + + OnsMqttQueryClientByTopicResult(); + explicit OnsMqttQueryClientByTopicResult(const std::string &payload); + ~OnsMqttQueryClientByTopicResult(); + MqttClientSetDo getMqttClientSetDo()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + MqttClientSetDo mqttClientSetDo_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYCLIENTBYTOPICRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h new file mode 100644 index 000000000..72bfe474d --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYHISTORYONLINEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYHISTORYONLINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryHistoryOnlineRequest : public RpcServiceRequest + { + + public: + OnsMqttQueryHistoryOnlineRequest(); + ~OnsMqttQueryHistoryOnlineRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + long getEndTime()const; + void setEndTime(long endTime); + long getBeginTime()const; + void setBeginTime(long beginTime); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + long endTime_; + long beginTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYHISTORYONLINEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineResult.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineResult.h new file mode 100644 index 000000000..8aeb9cafc --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYHISTORYONLINERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYHISTORYONLINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryHistoryOnlineResult : public ServiceResult + { + public: + struct Data + { + struct StatsDataDo + { + long x; + float y; + }; + std::string yUnit; + std::string title; + std::string xUnit; + std::vector records; + }; + + + OnsMqttQueryHistoryOnlineResult(); + explicit OnsMqttQueryHistoryOnlineResult(const std::string &payload); + ~OnsMqttQueryHistoryOnlineResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYHISTORYONLINERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h new file mode 100644 index 000000000..00a0da480 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYMSGTRANSTRENDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYMSGTRANSTRENDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryMsgTransTrendRequest : public RpcServiceRequest + { + + public: + OnsMqttQueryMsgTransTrendRequest(); + ~OnsMqttQueryMsgTransTrendRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getQos()const; + void setQos(int qos); + std::string getTransType()const; + void setTransType(const std::string& transType); + long getEndTime()const; + void setEndTime(long endTime); + long getBeginTime()const; + void setBeginTime(long beginTime); + std::string getTpsType()const; + void setTpsType(const std::string& tpsType); + std::string getParentTopic()const; + void setParentTopic(const std::string& parentTopic); + std::string getMsgType()const; + void setMsgType(const std::string& msgType); + std::string getSubTopic()const; + void setSubTopic(const std::string& subTopic); + + private: + long preventCache_; + std::string instanceId_; + int qos_; + std::string transType_; + long endTime_; + long beginTime_; + std::string tpsType_; + std::string parentTopic_; + std::string msgType_; + std::string subTopic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYMSGTRANSTRENDREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendResult.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendResult.h new file mode 100644 index 000000000..c582c6281 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYMSGTRANSTRENDRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYMSGTRANSTRENDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryMsgTransTrendResult : public ServiceResult + { + public: + struct Data + { + struct StatsDataDo + { + long x; + float y; + }; + std::string yUnit; + std::string title; + std::string xUnit; + std::vector records; + }; + + + OnsMqttQueryMsgTransTrendResult(); + explicit OnsMqttQueryMsgTransTrendResult(const std::string &payload); + ~OnsMqttQueryMsgTransTrendResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYMSGTRANSTRENDRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h b/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h new file mode 100644 index 000000000..2bcc113d2 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsRegionListRequest : public RpcServiceRequest + { + + public: + OnsRegionListRequest(); + ~OnsRegionListRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + + private: + long preventCache_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsRegionListResult.h b/ons/include/alibabacloud/ons/model/OnsRegionListResult.h new file mode 100644 index 000000000..5883541fe --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsRegionListResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsRegionListResult : public ServiceResult + { + public: + struct RegionDo + { + std::string channelName; + std::string regionName; + std::string onsRegionId; + long createTime; + long updateTime; + long id; + int channelId; + }; + + + OnsRegionListResult(); + explicit OnsRegionListResult(const std::string &payload); + ~OnsRegionListResult(); + std::vector getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h new file mode 100644 index 000000000..2fb400f9e --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicCreateRequest : public RpcServiceRequest + { + + public: + OnsTopicCreateRequest(); + ~OnsTopicCreateRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getMessageType()const; + void setMessageType(int messageType); + std::string getTopic()const; + void setTopic(const std::string& topic); + std::string getRemark()const; + void setRemark(const std::string& remark); + + private: + long preventCache_; + std::string instanceId_; + int messageType_; + std::string topic_; + std::string remark_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicCreateResult.h b/ons/include/alibabacloud/ons/model/OnsTopicCreateResult.h new file mode 100644 index 000000000..fcce0d0af --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicCreateResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicCreateResult : public ServiceResult + { + public: + + + OnsTopicCreateResult(); + explicit OnsTopicCreateResult(const std::string &payload); + ~OnsTopicCreateResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h new file mode 100644 index 000000000..6304542b8 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicDeleteRequest : public RpcServiceRequest + { + + public: + OnsTopicDeleteRequest(); + ~OnsTopicDeleteRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + long preventCache_; + std::string instanceId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicDeleteResult.h b/ons/include/alibabacloud/ons/model/OnsTopicDeleteResult.h new file mode 100644 index 000000000..9875c0b66 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicDeleteResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicDeleteResult : public ServiceResult + { + public: + + + OnsTopicDeleteResult(); + explicit OnsTopicDeleteResult(const std::string &payload); + ~OnsTopicDeleteResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h new file mode 100644 index 000000000..d5d45cdf3 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicListRequest : public RpcServiceRequest + { + + public: + OnsTopicListRequest(); + ~OnsTopicListRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + long preventCache_; + std::string instanceId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicListResult.h b/ons/include/alibabacloud/ons/model/OnsTopicListResult.h new file mode 100644 index 000000000..80d891270 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicListResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicListResult : public ServiceResult + { + public: + struct PublishInfoDo + { + std::string owner; + int relation; + std::string instanceId; + long createTime; + std::string relationName; + bool independentNaming; + std::string topic; + int messageType; + std::string remark; + }; + + + OnsTopicListResult(); + explicit OnsTopicListResult(const std::string &payload); + ~OnsTopicListResult(); + std::vector getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h new file mode 100644 index 000000000..bdd7e931b --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicStatusRequest : public RpcServiceRequest + { + + public: + OnsTopicStatusRequest(); + ~OnsTopicStatusRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + long preventCache_; + std::string instanceId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicStatusResult.h b/ons/include/alibabacloud/ons/model/OnsTopicStatusResult.h new file mode 100644 index 000000000..560835925 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicStatusResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicStatusResult : public ServiceResult + { + public: + struct Data + { + long lastTimeStamp; + long totalCount; + int perm; + }; + + + OnsTopicStatusResult(); + explicit OnsTopicStatusResult(const std::string &payload); + ~OnsTopicStatusResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h new file mode 100644 index 000000000..42e71df99 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicSubDetailRequest : public RpcServiceRequest + { + + public: + OnsTopicSubDetailRequest(); + ~OnsTopicSubDetailRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + long preventCache_; + std::string instanceId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicSubDetailResult.h b/ons/include/alibabacloud/ons/model/OnsTopicSubDetailResult.h new file mode 100644 index 000000000..02a4eea57 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicSubDetailResult.h @@ -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_ONS_MODEL_ONSTOPICSUBDETAILRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicSubDetailResult : public ServiceResult + { + public: + struct Data + { + struct SubscriptionDataListItem + { + std::string messageModel; + std::string subString; + std::string groupId; + }; + std::vector subscriptionDataList; + std::string topic; + }; + + + OnsTopicSubDetailResult(); + explicit OnsTopicSubDetailResult(const std::string &payload); + ~OnsTopicSubDetailResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h new file mode 100644 index 000000000..6ad943e16 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicUpdateRequest : public RpcServiceRequest + { + + public: + OnsTopicUpdateRequest(); + ~OnsTopicUpdateRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPerm()const; + void setPerm(int perm); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + long preventCache_; + std::string instanceId_; + int perm_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTopicUpdateResult.h b/ons/include/alibabacloud/ons/model/OnsTopicUpdateResult.h new file mode 100644 index 000000000..e2efa8385 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTopicUpdateResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTopicUpdateResult : public ServiceResult + { + public: + + + OnsTopicUpdateResult(); + explicit OnsTopicUpdateResult(const std::string &payload); + ~OnsTopicUpdateResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h b/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h new file mode 100644 index 000000000..b2288984b --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTraceGetResultRequest : public RpcServiceRequest + { + + public: + OnsTraceGetResultRequest(); + ~OnsTraceGetResultRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getQueryId()const; + void setQueryId(const std::string& queryId); + + private: + long preventCache_; + std::string queryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTraceGetResultResult.h b/ons/include/alibabacloud/ons/model/OnsTraceGetResultResult.h new file mode 100644 index 000000000..56d5250dc --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTraceGetResultResult.h @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTraceGetResultResult : public ServiceResult + { + public: + struct TraceData + { + struct TraceMapDo + { + struct SubMapDo + { + struct SubClientInfoDo + { + int costTime; + std::string status; + std::string clientHost; + long subTime; + std::string subGroupName; + int reconsumeTimes; + }; + int failCount; + std::string subGroupName; + int successCount; + std::vector clientList; + }; + int costTime; + std::string status; + std::string msgKey; + std::vector subList; + std::string tag; + std::string bornHost; + long pubTime; + std::string topic; + std::string pubGroupName; + std::string msgId; + }; + std::string status; + std::string instanceId; + std::string userId; + std::string queryId; + std::string msgKey; + long createTime; + long updateTime; + std::vector traceList; + std::string topic; + std::string msgId; + }; + + + OnsTraceGetResultResult(); + explicit OnsTraceGetResultResult(const std::string &payload); + ~OnsTraceGetResultResult(); + TraceData getTraceData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + TraceData traceData_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h new file mode 100644 index 000000000..b675377b0 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgIdRequest : public RpcServiceRequest + { + + public: + OnsTraceQueryByMsgIdRequest(); + ~OnsTraceQueryByMsgIdRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTopic()const; + void setTopic(const std::string& topic); + std::string getMsgId()const; + void setMsgId(const std::string& msgId); + long getEndTime()const; + void setEndTime(long endTime); + long getBeginTime()const; + void setBeginTime(long beginTime); + + private: + long preventCache_; + std::string instanceId_; + std::string topic_; + std::string msgId_; + long endTime_; + long beginTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdResult.h b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdResult.h new file mode 100644 index 000000000..a0c2127ca --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgIdResult : public ServiceResult + { + public: + + + OnsTraceQueryByMsgIdResult(); + explicit OnsTraceQueryByMsgIdResult(const std::string &payload); + ~OnsTraceQueryByMsgIdResult(); + std::string getQueryId()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string queryId_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h new file mode 100644 index 000000000..1cb296818 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgKeyRequest : public RpcServiceRequest + { + + public: + OnsTraceQueryByMsgKeyRequest(); + ~OnsTraceQueryByMsgKeyRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTopic()const; + void setTopic(const std::string& topic); + long getEndTime()const; + void setEndTime(long endTime); + long getBeginTime()const; + void setBeginTime(long beginTime); + std::string getMsgKey()const; + void setMsgKey(const std::string& msgKey); + + private: + long preventCache_; + std::string instanceId_; + std::string topic_; + long endTime_; + long beginTime_; + std::string msgKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyResult.h b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyResult.h new file mode 100644 index 000000000..8a2d1e888 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgKeyResult : public ServiceResult + { + public: + + + OnsTraceQueryByMsgKeyResult(); + explicit OnsTraceQueryByMsgKeyResult(const std::string &payload); + ~OnsTraceQueryByMsgKeyResult(); + std::string getQueryId()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string queryId_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h b/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h new file mode 100644 index 000000000..159623b68 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTrendGroupOutputTpsRequest : public RpcServiceRequest + { + + public: + OnsTrendGroupOutputTpsRequest(); + ~OnsTrendGroupOutputTpsRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + long getPeriod()const; + void setPeriod(long period); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getTopic()const; + void setTopic(const std::string& topic); + long getEndTime()const; + void setEndTime(long endTime); + long getBeginTime()const; + void setBeginTime(long beginTime); + int getType()const; + void setType(int type); + + private: + long preventCache_; + long period_; + std::string instanceId_; + std::string groupId_; + std::string topic_; + long endTime_; + long beginTime_; + int type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsResult.h b/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsResult.h new file mode 100644 index 000000000..2b838dcfd --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTrendGroupOutputTpsResult : public ServiceResult + { + public: + struct Data + { + struct StatsDataDo + { + long x; + float y; + }; + std::string yUnit; + std::string title; + std::string xUnit; + std::vector records; + }; + + + OnsTrendGroupOutputTpsResult(); + explicit OnsTrendGroupOutputTpsResult(const std::string &payload); + ~OnsTrendGroupOutputTpsResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h b/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h new file mode 100644 index 000000000..abb4402d3 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTrendTopicInputTpsRequest : public RpcServiceRequest + { + + public: + OnsTrendTopicInputTpsRequest(); + ~OnsTrendTopicInputTpsRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + long getPeriod()const; + void setPeriod(long period); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTopic()const; + void setTopic(const std::string& topic); + long getEndTime()const; + void setEndTime(long endTime); + long getBeginTime()const; + void setBeginTime(long beginTime); + int getType()const; + void setType(int type); + + private: + long preventCache_; + long period_; + std::string instanceId_; + std::string topic_; + long endTime_; + long beginTime_; + int type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsResult.h b/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsResult.h new file mode 100644 index 000000000..8e53ac48d --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSRESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsTrendTopicInputTpsResult : public ServiceResult + { + public: + struct Data + { + struct StatsDataDo + { + long x; + float y; + }; + std::string yUnit; + std::string title; + std::string xUnit; + std::vector records; + }; + + + OnsTrendTopicInputTpsResult(); + explicit OnsTrendTopicInputTpsResult(const std::string &payload); + ~OnsTrendTopicInputTpsResult(); + Data getData()const; + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSRESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h new file mode 100644 index 000000000..1fcd2f8a9 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSWARNCREATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSWARNCREATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsWarnCreateRequest : public RpcServiceRequest + { + + public: + OnsWarnCreateRequest(); + ~OnsWarnCreateRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getBlockTime()const; + void setBlockTime(const std::string& blockTime); + std::string getLevel()const; + void setLevel(const std::string& level); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getDelayTime()const; + void setDelayTime(const std::string& delayTime); + std::string getTopic()const; + void setTopic(const std::string& topic); + std::string getThreshold()const; + void setThreshold(const std::string& threshold); + std::string getAlertTime()const; + void setAlertTime(const std::string& alertTime); + std::string getContacts()const; + void setContacts(const std::string& contacts); + + private: + long preventCache_; + std::string instanceId_; + std::string blockTime_; + std::string level_; + std::string groupId_; + std::string delayTime_; + std::string topic_; + std::string threshold_; + std::string alertTime_; + std::string contacts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSWARNCREATEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsWarnCreateResult.h b/ons/include/alibabacloud/ons/model/OnsWarnCreateResult.h new file mode 100644 index 000000000..11722c810 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsWarnCreateResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSWARNCREATERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSWARNCREATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsWarnCreateResult : public ServiceResult + { + public: + + + OnsWarnCreateResult(); + explicit OnsWarnCreateResult(const std::string &payload); + ~OnsWarnCreateResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSWARNCREATERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h new file mode 100644 index 000000000..d1b6f722c --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSWARNDELETEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSWARNDELETEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsWarnDeleteRequest : public RpcServiceRequest + { + + public: + OnsWarnDeleteRequest(); + ~OnsWarnDeleteRequest(); + + long getPreventCache()const; + void setPreventCache(long preventCache); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + long preventCache_; + std::string instanceId_; + std::string groupId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSWARNDELETEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsWarnDeleteResult.h b/ons/include/alibabacloud/ons/model/OnsWarnDeleteResult.h new file mode 100644 index 000000000..0c00b0d09 --- /dev/null +++ b/ons/include/alibabacloud/ons/model/OnsWarnDeleteResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSWARNDELETERESULT_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSWARNDELETERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ons + { + namespace Model + { + class ALIBABACLOUD_ONS_EXPORT OnsWarnDeleteResult : public ServiceResult + { + public: + + + OnsWarnDeleteResult(); + explicit OnsWarnDeleteResult(const std::string &payload); + ~OnsWarnDeleteResult(); + std::string getHelpUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string helpUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ONS_MODEL_ONSWARNDELETERESULT_H_ \ No newline at end of file diff --git a/ons/src/OnsClient.cc b/ons/src/OnsClient.cc new file mode 100644 index 000000000..38cce5607 --- /dev/null +++ b/ons/src/OnsClient.cc @@ -0,0 +1,1709 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +namespace +{ + const std::string SERVICE_NAME = "Ons"; +} + +OnsClient::OnsClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ons"); +} + +OnsClient::OnsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ons"); +} + +OnsClient::OnsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ons"); +} + +OnsClient::~OnsClient() +{} + +OnsClient::OnsTopicSubDetailOutcome OnsClient::onsTopicSubDetail(const OnsTopicSubDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTopicSubDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTopicSubDetailOutcome(OnsTopicSubDetailResult(outcome.result())); + else + return OnsTopicSubDetailOutcome(outcome.error()); +} + +void OnsClient::onsTopicSubDetailAsync(const OnsTopicSubDetailRequest& request, const OnsTopicSubDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTopicSubDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTopicSubDetailOutcomeCallable OnsClient::onsTopicSubDetailCallable(const OnsTopicSubDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTopicSubDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMqttQueryHistoryOnlineOutcome OnsClient::onsMqttQueryHistoryOnline(const OnsMqttQueryHistoryOnlineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMqttQueryHistoryOnlineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMqttQueryHistoryOnlineOutcome(OnsMqttQueryHistoryOnlineResult(outcome.result())); + else + return OnsMqttQueryHistoryOnlineOutcome(outcome.error()); +} + +void OnsClient::onsMqttQueryHistoryOnlineAsync(const OnsMqttQueryHistoryOnlineRequest& request, const OnsMqttQueryHistoryOnlineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMqttQueryHistoryOnline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMqttQueryHistoryOnlineOutcomeCallable OnsClient::onsMqttQueryHistoryOnlineCallable(const OnsMqttQueryHistoryOnlineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMqttQueryHistoryOnline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsInstanceDeleteOutcome OnsClient::onsInstanceDelete(const OnsInstanceDeleteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsInstanceDeleteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsInstanceDeleteOutcome(OnsInstanceDeleteResult(outcome.result())); + else + return OnsInstanceDeleteOutcome(outcome.error()); +} + +void OnsClient::onsInstanceDeleteAsync(const OnsInstanceDeleteRequest& request, const OnsInstanceDeleteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsInstanceDelete(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsInstanceDeleteOutcomeCallable OnsClient::onsInstanceDeleteCallable(const OnsInstanceDeleteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsInstanceDelete(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsTopicDeleteOutcome OnsClient::onsTopicDelete(const OnsTopicDeleteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTopicDeleteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTopicDeleteOutcome(OnsTopicDeleteResult(outcome.result())); + else + return OnsTopicDeleteOutcome(outcome.error()); +} + +void OnsClient::onsTopicDeleteAsync(const OnsTopicDeleteRequest& request, const OnsTopicDeleteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTopicDelete(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTopicDeleteOutcomeCallable OnsClient::onsTopicDeleteCallable(const OnsTopicDeleteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTopicDelete(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsTopicUpdateOutcome OnsClient::onsTopicUpdate(const OnsTopicUpdateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTopicUpdateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTopicUpdateOutcome(OnsTopicUpdateResult(outcome.result())); + else + return OnsTopicUpdateOutcome(outcome.error()); +} + +void OnsClient::onsTopicUpdateAsync(const OnsTopicUpdateRequest& request, const OnsTopicUpdateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTopicUpdate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTopicUpdateOutcomeCallable OnsClient::onsTopicUpdateCallable(const OnsTopicUpdateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTopicUpdate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsTraceQueryByMsgKeyOutcome OnsClient::onsTraceQueryByMsgKey(const OnsTraceQueryByMsgKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTraceQueryByMsgKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTraceQueryByMsgKeyOutcome(OnsTraceQueryByMsgKeyResult(outcome.result())); + else + return OnsTraceQueryByMsgKeyOutcome(outcome.error()); +} + +void OnsClient::onsTraceQueryByMsgKeyAsync(const OnsTraceQueryByMsgKeyRequest& request, const OnsTraceQueryByMsgKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTraceQueryByMsgKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTraceQueryByMsgKeyOutcomeCallable OnsClient::onsTraceQueryByMsgKeyCallable(const OnsTraceQueryByMsgKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTraceQueryByMsgKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsConsumerGetConnectionOutcome OnsClient::onsConsumerGetConnection(const OnsConsumerGetConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsConsumerGetConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsConsumerGetConnectionOutcome(OnsConsumerGetConnectionResult(outcome.result())); + else + return OnsConsumerGetConnectionOutcome(outcome.error()); +} + +void OnsClient::onsConsumerGetConnectionAsync(const OnsConsumerGetConnectionRequest& request, const OnsConsumerGetConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsConsumerGetConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsConsumerGetConnectionOutcomeCallable OnsClient::onsConsumerGetConnectionCallable(const OnsConsumerGetConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsConsumerGetConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsTraceQueryByMsgIdOutcome OnsClient::onsTraceQueryByMsgId(const OnsTraceQueryByMsgIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTraceQueryByMsgIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTraceQueryByMsgIdOutcome(OnsTraceQueryByMsgIdResult(outcome.result())); + else + return OnsTraceQueryByMsgIdOutcome(outcome.error()); +} + +void OnsClient::onsTraceQueryByMsgIdAsync(const OnsTraceQueryByMsgIdRequest& request, const OnsTraceQueryByMsgIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTraceQueryByMsgId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTraceQueryByMsgIdOutcomeCallable OnsClient::onsTraceQueryByMsgIdCallable(const OnsTraceQueryByMsgIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTraceQueryByMsgId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsRegionListOutcome OnsClient::onsRegionList(const OnsRegionListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsRegionListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsRegionListOutcome(OnsRegionListResult(outcome.result())); + else + return OnsRegionListOutcome(outcome.error()); +} + +void OnsClient::onsRegionListAsync(const OnsRegionListRequest& request, const OnsRegionListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsRegionList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsRegionListOutcomeCallable OnsClient::onsRegionListCallable(const OnsRegionListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsRegionList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsTopicListOutcome OnsClient::onsTopicList(const OnsTopicListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTopicListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTopicListOutcome(OnsTopicListResult(outcome.result())); + else + return OnsTopicListOutcome(outcome.error()); +} + +void OnsClient::onsTopicListAsync(const OnsTopicListRequest& request, const OnsTopicListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTopicList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTopicListOutcomeCallable OnsClient::onsTopicListCallable(const OnsTopicListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTopicList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsConsumerAccumulateOutcome OnsClient::onsConsumerAccumulate(const OnsConsumerAccumulateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsConsumerAccumulateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsConsumerAccumulateOutcome(OnsConsumerAccumulateResult(outcome.result())); + else + return OnsConsumerAccumulateOutcome(outcome.error()); +} + +void OnsClient::onsConsumerAccumulateAsync(const OnsConsumerAccumulateRequest& request, const OnsConsumerAccumulateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsConsumerAccumulate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsConsumerAccumulateOutcomeCallable OnsClient::onsConsumerAccumulateCallable(const OnsConsumerAccumulateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsConsumerAccumulate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMessageSendOutcome OnsClient::onsMessageSend(const OnsMessageSendRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMessageSendOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMessageSendOutcome(OnsMessageSendResult(outcome.result())); + else + return OnsMessageSendOutcome(outcome.error()); +} + +void OnsClient::onsMessageSendAsync(const OnsMessageSendRequest& request, const OnsMessageSendAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMessageSend(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMessageSendOutcomeCallable OnsClient::onsMessageSendCallable(const OnsMessageSendRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMessageSend(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMqttQueryClientByGroupIdOutcome OnsClient::onsMqttQueryClientByGroupId(const OnsMqttQueryClientByGroupIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMqttQueryClientByGroupIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMqttQueryClientByGroupIdOutcome(OnsMqttQueryClientByGroupIdResult(outcome.result())); + else + return OnsMqttQueryClientByGroupIdOutcome(outcome.error()); +} + +void OnsClient::onsMqttQueryClientByGroupIdAsync(const OnsMqttQueryClientByGroupIdRequest& request, const OnsMqttQueryClientByGroupIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMqttQueryClientByGroupId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMqttQueryClientByGroupIdOutcomeCallable OnsClient::onsMqttQueryClientByGroupIdCallable(const OnsMqttQueryClientByGroupIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMqttQueryClientByGroupId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsGroupConsumerUpdateOutcome OnsClient::onsGroupConsumerUpdate(const OnsGroupConsumerUpdateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsGroupConsumerUpdateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsGroupConsumerUpdateOutcome(OnsGroupConsumerUpdateResult(outcome.result())); + else + return OnsGroupConsumerUpdateOutcome(outcome.error()); +} + +void OnsClient::onsGroupConsumerUpdateAsync(const OnsGroupConsumerUpdateRequest& request, const OnsGroupConsumerUpdateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsGroupConsumerUpdate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsGroupConsumerUpdateOutcomeCallable OnsClient::onsGroupConsumerUpdateCallable(const OnsGroupConsumerUpdateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsGroupConsumerUpdate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMessageTraceOutcome OnsClient::onsMessageTrace(const OnsMessageTraceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMessageTraceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMessageTraceOutcome(OnsMessageTraceResult(outcome.result())); + else + return OnsMessageTraceOutcome(outcome.error()); +} + +void OnsClient::onsMessageTraceAsync(const OnsMessageTraceRequest& request, const OnsMessageTraceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMessageTrace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMessageTraceOutcomeCallable OnsClient::onsMessageTraceCallable(const OnsMessageTraceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMessageTrace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsConsumerTimeSpanOutcome OnsClient::onsConsumerTimeSpan(const OnsConsumerTimeSpanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsConsumerTimeSpanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsConsumerTimeSpanOutcome(OnsConsumerTimeSpanResult(outcome.result())); + else + return OnsConsumerTimeSpanOutcome(outcome.error()); +} + +void OnsClient::onsConsumerTimeSpanAsync(const OnsConsumerTimeSpanRequest& request, const OnsConsumerTimeSpanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsConsumerTimeSpan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsConsumerTimeSpanOutcomeCallable OnsClient::onsConsumerTimeSpanCallable(const OnsConsumerTimeSpanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsConsumerTimeSpan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsGroupListOutcome OnsClient::onsGroupList(const OnsGroupListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsGroupListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsGroupListOutcome(OnsGroupListResult(outcome.result())); + else + return OnsGroupListOutcome(outcome.error()); +} + +void OnsClient::onsGroupListAsync(const OnsGroupListRequest& request, const OnsGroupListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsGroupList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsGroupListOutcomeCallable OnsClient::onsGroupListCallable(const OnsGroupListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsGroupList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsGroupSubDetailOutcome OnsClient::onsGroupSubDetail(const OnsGroupSubDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsGroupSubDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsGroupSubDetailOutcome(OnsGroupSubDetailResult(outcome.result())); + else + return OnsGroupSubDetailOutcome(outcome.error()); +} + +void OnsClient::onsGroupSubDetailAsync(const OnsGroupSubDetailRequest& request, const OnsGroupSubDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsGroupSubDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsGroupSubDetailOutcomeCallable OnsClient::onsGroupSubDetailCallable(const OnsGroupSubDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsGroupSubDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsTraceGetResultOutcome OnsClient::onsTraceGetResult(const OnsTraceGetResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTraceGetResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTraceGetResultOutcome(OnsTraceGetResultResult(outcome.result())); + else + return OnsTraceGetResultOutcome(outcome.error()); +} + +void OnsClient::onsTraceGetResultAsync(const OnsTraceGetResultRequest& request, const OnsTraceGetResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTraceGetResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTraceGetResultOutcomeCallable OnsClient::onsTraceGetResultCallable(const OnsTraceGetResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTraceGetResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsTopicCreateOutcome OnsClient::onsTopicCreate(const OnsTopicCreateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTopicCreateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTopicCreateOutcome(OnsTopicCreateResult(outcome.result())); + else + return OnsTopicCreateOutcome(outcome.error()); +} + +void OnsClient::onsTopicCreateAsync(const OnsTopicCreateRequest& request, const OnsTopicCreateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTopicCreate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTopicCreateOutcomeCallable OnsClient::onsTopicCreateCallable(const OnsTopicCreateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTopicCreate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsDLQMessagePageQueryByGroupIdOutcome OnsClient::onsDLQMessagePageQueryByGroupId(const OnsDLQMessagePageQueryByGroupIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsDLQMessagePageQueryByGroupIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsDLQMessagePageQueryByGroupIdOutcome(OnsDLQMessagePageQueryByGroupIdResult(outcome.result())); + else + return OnsDLQMessagePageQueryByGroupIdOutcome(outcome.error()); +} + +void OnsClient::onsDLQMessagePageQueryByGroupIdAsync(const OnsDLQMessagePageQueryByGroupIdRequest& request, const OnsDLQMessagePageQueryByGroupIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsDLQMessagePageQueryByGroupId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsDLQMessagePageQueryByGroupIdOutcomeCallable OnsClient::onsDLQMessagePageQueryByGroupIdCallable(const OnsDLQMessagePageQueryByGroupIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsDLQMessagePageQueryByGroupId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsGroupDeleteOutcome OnsClient::onsGroupDelete(const OnsGroupDeleteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsGroupDeleteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsGroupDeleteOutcome(OnsGroupDeleteResult(outcome.result())); + else + return OnsGroupDeleteOutcome(outcome.error()); +} + +void OnsClient::onsGroupDeleteAsync(const OnsGroupDeleteRequest& request, const OnsGroupDeleteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsGroupDelete(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsGroupDeleteOutcomeCallable OnsClient::onsGroupDeleteCallable(const OnsGroupDeleteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsGroupDelete(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsInstanceUpdateOutcome OnsClient::onsInstanceUpdate(const OnsInstanceUpdateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsInstanceUpdateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsInstanceUpdateOutcome(OnsInstanceUpdateResult(outcome.result())); + else + return OnsInstanceUpdateOutcome(outcome.error()); +} + +void OnsClient::onsInstanceUpdateAsync(const OnsInstanceUpdateRequest& request, const OnsInstanceUpdateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsInstanceUpdate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsInstanceUpdateOutcomeCallable OnsClient::onsInstanceUpdateCallable(const OnsInstanceUpdateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsInstanceUpdate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMessagePageQueryByTopicOutcome OnsClient::onsMessagePageQueryByTopic(const OnsMessagePageQueryByTopicRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMessagePageQueryByTopicOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMessagePageQueryByTopicOutcome(OnsMessagePageQueryByTopicResult(outcome.result())); + else + return OnsMessagePageQueryByTopicOutcome(outcome.error()); +} + +void OnsClient::onsMessagePageQueryByTopicAsync(const OnsMessagePageQueryByTopicRequest& request, const OnsMessagePageQueryByTopicAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMessagePageQueryByTopic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMessagePageQueryByTopicOutcomeCallable OnsClient::onsMessagePageQueryByTopicCallable(const OnsMessagePageQueryByTopicRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMessagePageQueryByTopic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsTrendTopicInputTpsOutcome OnsClient::onsTrendTopicInputTps(const OnsTrendTopicInputTpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTrendTopicInputTpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTrendTopicInputTpsOutcome(OnsTrendTopicInputTpsResult(outcome.result())); + else + return OnsTrendTopicInputTpsOutcome(outcome.error()); +} + +void OnsClient::onsTrendTopicInputTpsAsync(const OnsTrendTopicInputTpsRequest& request, const OnsTrendTopicInputTpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTrendTopicInputTps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTrendTopicInputTpsOutcomeCallable OnsClient::onsTrendTopicInputTpsCallable(const OnsTrendTopicInputTpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTrendTopicInputTps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsGroupCreateOutcome OnsClient::onsGroupCreate(const OnsGroupCreateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsGroupCreateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsGroupCreateOutcome(OnsGroupCreateResult(outcome.result())); + else + return OnsGroupCreateOutcome(outcome.error()); +} + +void OnsClient::onsGroupCreateAsync(const OnsGroupCreateRequest& request, const OnsGroupCreateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsGroupCreate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsGroupCreateOutcomeCallable OnsClient::onsGroupCreateCallable(const OnsGroupCreateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsGroupCreate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsDLQMessageResendByIdOutcome OnsClient::onsDLQMessageResendById(const OnsDLQMessageResendByIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsDLQMessageResendByIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsDLQMessageResendByIdOutcome(OnsDLQMessageResendByIdResult(outcome.result())); + else + return OnsDLQMessageResendByIdOutcome(outcome.error()); +} + +void OnsClient::onsDLQMessageResendByIdAsync(const OnsDLQMessageResendByIdRequest& request, const OnsDLQMessageResendByIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsDLQMessageResendById(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsDLQMessageResendByIdOutcomeCallable OnsClient::onsDLQMessageResendByIdCallable(const OnsDLQMessageResendByIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsDLQMessageResendById(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsTrendGroupOutputTpsOutcome OnsClient::onsTrendGroupOutputTps(const OnsTrendGroupOutputTpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTrendGroupOutputTpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTrendGroupOutputTpsOutcome(OnsTrendGroupOutputTpsResult(outcome.result())); + else + return OnsTrendGroupOutputTpsOutcome(outcome.error()); +} + +void OnsClient::onsTrendGroupOutputTpsAsync(const OnsTrendGroupOutputTpsRequest& request, const OnsTrendGroupOutputTpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTrendGroupOutputTps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTrendGroupOutputTpsOutcomeCallable OnsClient::onsTrendGroupOutputTpsCallable(const OnsTrendGroupOutputTpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTrendGroupOutputTps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMqttQueryClientByClientIdOutcome OnsClient::onsMqttQueryClientByClientId(const OnsMqttQueryClientByClientIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMqttQueryClientByClientIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMqttQueryClientByClientIdOutcome(OnsMqttQueryClientByClientIdResult(outcome.result())); + else + return OnsMqttQueryClientByClientIdOutcome(outcome.error()); +} + +void OnsClient::onsMqttQueryClientByClientIdAsync(const OnsMqttQueryClientByClientIdRequest& request, const OnsMqttQueryClientByClientIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMqttQueryClientByClientId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMqttQueryClientByClientIdOutcomeCallable OnsClient::onsMqttQueryClientByClientIdCallable(const OnsMqttQueryClientByClientIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMqttQueryClientByClientId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMessagePushOutcome OnsClient::onsMessagePush(const OnsMessagePushRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMessagePushOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMessagePushOutcome(OnsMessagePushResult(outcome.result())); + else + return OnsMessagePushOutcome(outcome.error()); +} + +void OnsClient::onsMessagePushAsync(const OnsMessagePushRequest& request, const OnsMessagePushAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMessagePush(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMessagePushOutcomeCallable OnsClient::onsMessagePushCallable(const OnsMessagePushRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMessagePush(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsConsumerStatusOutcome OnsClient::onsConsumerStatus(const OnsConsumerStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsConsumerStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsConsumerStatusOutcome(OnsConsumerStatusResult(outcome.result())); + else + return OnsConsumerStatusOutcome(outcome.error()); +} + +void OnsClient::onsConsumerStatusAsync(const OnsConsumerStatusRequest& request, const OnsConsumerStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsConsumerStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsConsumerStatusOutcomeCallable OnsClient::onsConsumerStatusCallable(const OnsConsumerStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsConsumerStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsWarnDeleteOutcome OnsClient::onsWarnDelete(const OnsWarnDeleteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsWarnDeleteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsWarnDeleteOutcome(OnsWarnDeleteResult(outcome.result())); + else + return OnsWarnDeleteOutcome(outcome.error()); +} + +void OnsClient::onsWarnDeleteAsync(const OnsWarnDeleteRequest& request, const OnsWarnDeleteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsWarnDelete(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsWarnDeleteOutcomeCallable OnsClient::onsWarnDeleteCallable(const OnsWarnDeleteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsWarnDelete(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMqttQueryMsgTransTrendOutcome OnsClient::onsMqttQueryMsgTransTrend(const OnsMqttQueryMsgTransTrendRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMqttQueryMsgTransTrendOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMqttQueryMsgTransTrendOutcome(OnsMqttQueryMsgTransTrendResult(outcome.result())); + else + return OnsMqttQueryMsgTransTrendOutcome(outcome.error()); +} + +void OnsClient::onsMqttQueryMsgTransTrendAsync(const OnsMqttQueryMsgTransTrendRequest& request, const OnsMqttQueryMsgTransTrendAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMqttQueryMsgTransTrend(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMqttQueryMsgTransTrendOutcomeCallable OnsClient::onsMqttQueryMsgTransTrendCallable(const OnsMqttQueryMsgTransTrendRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMqttQueryMsgTransTrend(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsConsumerResetOffsetOutcome OnsClient::onsConsumerResetOffset(const OnsConsumerResetOffsetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsConsumerResetOffsetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsConsumerResetOffsetOutcome(OnsConsumerResetOffsetResult(outcome.result())); + else + return OnsConsumerResetOffsetOutcome(outcome.error()); +} + +void OnsClient::onsConsumerResetOffsetAsync(const OnsConsumerResetOffsetRequest& request, const OnsConsumerResetOffsetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsConsumerResetOffset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsConsumerResetOffsetOutcomeCallable OnsClient::onsConsumerResetOffsetCallable(const OnsConsumerResetOffsetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsConsumerResetOffset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMessageGetByMsgIdOutcome OnsClient::onsMessageGetByMsgId(const OnsMessageGetByMsgIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMessageGetByMsgIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMessageGetByMsgIdOutcome(OnsMessageGetByMsgIdResult(outcome.result())); + else + return OnsMessageGetByMsgIdOutcome(outcome.error()); +} + +void OnsClient::onsMessageGetByMsgIdAsync(const OnsMessageGetByMsgIdRequest& request, const OnsMessageGetByMsgIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMessageGetByMsgId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMessageGetByMsgIdOutcomeCallable OnsClient::onsMessageGetByMsgIdCallable(const OnsMessageGetByMsgIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMessageGetByMsgId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsInstanceBaseInfoOutcome OnsClient::onsInstanceBaseInfo(const OnsInstanceBaseInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsInstanceBaseInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsInstanceBaseInfoOutcome(OnsInstanceBaseInfoResult(outcome.result())); + else + return OnsInstanceBaseInfoOutcome(outcome.error()); +} + +void OnsClient::onsInstanceBaseInfoAsync(const OnsInstanceBaseInfoRequest& request, const OnsInstanceBaseInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsInstanceBaseInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsInstanceBaseInfoOutcomeCallable OnsClient::onsInstanceBaseInfoCallable(const OnsInstanceBaseInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsInstanceBaseInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMqttGroupIdDeleteOutcome OnsClient::onsMqttGroupIdDelete(const OnsMqttGroupIdDeleteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMqttGroupIdDeleteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMqttGroupIdDeleteOutcome(OnsMqttGroupIdDeleteResult(outcome.result())); + else + return OnsMqttGroupIdDeleteOutcome(outcome.error()); +} + +void OnsClient::onsMqttGroupIdDeleteAsync(const OnsMqttGroupIdDeleteRequest& request, const OnsMqttGroupIdDeleteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMqttGroupIdDelete(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMqttGroupIdDeleteOutcomeCallable OnsClient::onsMqttGroupIdDeleteCallable(const OnsMqttGroupIdDeleteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMqttGroupIdDelete(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsInstanceInServiceListOutcome OnsClient::onsInstanceInServiceList(const OnsInstanceInServiceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsInstanceInServiceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsInstanceInServiceListOutcome(OnsInstanceInServiceListResult(outcome.result())); + else + return OnsInstanceInServiceListOutcome(outcome.error()); +} + +void OnsClient::onsInstanceInServiceListAsync(const OnsInstanceInServiceListRequest& request, const OnsInstanceInServiceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsInstanceInServiceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsInstanceInServiceListOutcomeCallable OnsClient::onsInstanceInServiceListCallable(const OnsInstanceInServiceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsInstanceInServiceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMqttGroupIdListOutcome OnsClient::onsMqttGroupIdList(const OnsMqttGroupIdListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMqttGroupIdListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMqttGroupIdListOutcome(OnsMqttGroupIdListResult(outcome.result())); + else + return OnsMqttGroupIdListOutcome(outcome.error()); +} + +void OnsClient::onsMqttGroupIdListAsync(const OnsMqttGroupIdListRequest& request, const OnsMqttGroupIdListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMqttGroupIdList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMqttGroupIdListOutcomeCallable OnsClient::onsMqttGroupIdListCallable(const OnsMqttGroupIdListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMqttGroupIdList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsDLQMessageGetByIdOutcome OnsClient::onsDLQMessageGetById(const OnsDLQMessageGetByIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsDLQMessageGetByIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsDLQMessageGetByIdOutcome(OnsDLQMessageGetByIdResult(outcome.result())); + else + return OnsDLQMessageGetByIdOutcome(outcome.error()); +} + +void OnsClient::onsDLQMessageGetByIdAsync(const OnsDLQMessageGetByIdRequest& request, const OnsDLQMessageGetByIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsDLQMessageGetById(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsDLQMessageGetByIdOutcomeCallable OnsClient::onsDLQMessageGetByIdCallable(const OnsDLQMessageGetByIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsDLQMessageGetById(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsInstanceCreateOutcome OnsClient::onsInstanceCreate(const OnsInstanceCreateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsInstanceCreateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsInstanceCreateOutcome(OnsInstanceCreateResult(outcome.result())); + else + return OnsInstanceCreateOutcome(outcome.error()); +} + +void OnsClient::onsInstanceCreateAsync(const OnsInstanceCreateRequest& request, const OnsInstanceCreateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsInstanceCreate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsInstanceCreateOutcomeCallable OnsClient::onsInstanceCreateCallable(const OnsInstanceCreateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsInstanceCreate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsWarnCreateOutcome OnsClient::onsWarnCreate(const OnsWarnCreateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsWarnCreateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsWarnCreateOutcome(OnsWarnCreateResult(outcome.result())); + else + return OnsWarnCreateOutcome(outcome.error()); +} + +void OnsClient::onsWarnCreateAsync(const OnsWarnCreateRequest& request, const OnsWarnCreateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsWarnCreate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsWarnCreateOutcomeCallable OnsClient::onsWarnCreateCallable(const OnsWarnCreateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsWarnCreate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsTopicStatusOutcome OnsClient::onsTopicStatus(const OnsTopicStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTopicStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTopicStatusOutcome(OnsTopicStatusResult(outcome.result())); + else + return OnsTopicStatusOutcome(outcome.error()); +} + +void OnsClient::onsTopicStatusAsync(const OnsTopicStatusRequest& request, const OnsTopicStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTopicStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTopicStatusOutcomeCallable OnsClient::onsTopicStatusCallable(const OnsTopicStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTopicStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMqttGroupIdCreateOutcome OnsClient::onsMqttGroupIdCreate(const OnsMqttGroupIdCreateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMqttGroupIdCreateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMqttGroupIdCreateOutcome(OnsMqttGroupIdCreateResult(outcome.result())); + else + return OnsMqttGroupIdCreateOutcome(outcome.error()); +} + +void OnsClient::onsMqttGroupIdCreateAsync(const OnsMqttGroupIdCreateRequest& request, const OnsMqttGroupIdCreateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMqttGroupIdCreate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMqttGroupIdCreateOutcomeCallable OnsClient::onsMqttGroupIdCreateCallable(const OnsMqttGroupIdCreateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMqttGroupIdCreate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMqttQueryClientByTopicOutcome OnsClient::onsMqttQueryClientByTopic(const OnsMqttQueryClientByTopicRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMqttQueryClientByTopicOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMqttQueryClientByTopicOutcome(OnsMqttQueryClientByTopicResult(outcome.result())); + else + return OnsMqttQueryClientByTopicOutcome(outcome.error()); +} + +void OnsClient::onsMqttQueryClientByTopicAsync(const OnsMqttQueryClientByTopicRequest& request, const OnsMqttQueryClientByTopicAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMqttQueryClientByTopic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMqttQueryClientByTopicOutcomeCallable OnsClient::onsMqttQueryClientByTopicCallable(const OnsMqttQueryClientByTopicRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMqttQueryClientByTopic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OnsClient::OnsMessageGetByKeyOutcome OnsClient::onsMessageGetByKey(const OnsMessageGetByKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsMessageGetByKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsMessageGetByKeyOutcome(OnsMessageGetByKeyResult(outcome.result())); + else + return OnsMessageGetByKeyOutcome(outcome.error()); +} + +void OnsClient::onsMessageGetByKeyAsync(const OnsMessageGetByKeyRequest& request, const OnsMessageGetByKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsMessageGetByKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsMessageGetByKeyOutcomeCallable OnsClient::onsMessageGetByKeyCallable(const OnsMessageGetByKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsMessageGetByKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ons/src/model/OnsConsumerAccumulateRequest.cc b/ons/src/model/OnsConsumerAccumulateRequest.cc new file mode 100644 index 000000000..23c7bb44c --- /dev/null +++ b/ons/src/model/OnsConsumerAccumulateRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsConsumerAccumulateRequest; + +OnsConsumerAccumulateRequest::OnsConsumerAccumulateRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsConsumerAccumulate") +{} + +OnsConsumerAccumulateRequest::~OnsConsumerAccumulateRequest() +{} + +long OnsConsumerAccumulateRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsConsumerAccumulateRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsConsumerAccumulateRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsConsumerAccumulateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsConsumerAccumulateRequest::getGroupId()const +{ + return groupId_; +} + +void OnsConsumerAccumulateRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +bool OnsConsumerAccumulateRequest::getDetail()const +{ + return detail_; +} + +void OnsConsumerAccumulateRequest::setDetail(bool detail) +{ + detail_ = detail; + setParameter("Detail", detail ? "true" : "false"); +} + diff --git a/ons/src/model/OnsConsumerAccumulateResult.cc b/ons/src/model/OnsConsumerAccumulateResult.cc new file mode 100644 index 000000000..9ec4eea71 --- /dev/null +++ b/ons/src/model/OnsConsumerAccumulateResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsConsumerAccumulateResult::OnsConsumerAccumulateResult() : + ServiceResult() +{} + +OnsConsumerAccumulateResult::OnsConsumerAccumulateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsConsumerAccumulateResult::~OnsConsumerAccumulateResult() +{} + +void OnsConsumerAccumulateResult::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["Online"].isNull()) + data_.online = dataNode["Online"].asString() == "true"; + if(!dataNode["TotalDiff"].isNull()) + data_.totalDiff = std::stol(dataNode["TotalDiff"].asString()); + if(!dataNode["ConsumeTps"].isNull()) + data_.consumeTps = std::stof(dataNode["ConsumeTps"].asString()); + if(!dataNode["LastTimestamp"].isNull()) + data_.lastTimestamp = std::stol(dataNode["LastTimestamp"].asString()); + if(!dataNode["DelayTime"].isNull()) + data_.delayTime = std::stol(dataNode["DelayTime"].asString()); + auto allDetailInTopicList = value["DetailInTopicList"]["DetailInTopicDo"]; + for (auto value : allDetailInTopicList) + { + Data::DetailInTopicDo detailInTopicDoObject; + if(!value["Topic"].isNull()) + detailInTopicDoObject.topic = value["Topic"].asString(); + if(!value["TotalDiff"].isNull()) + detailInTopicDoObject.totalDiff = std::stol(value["TotalDiff"].asString()); + if(!value["LastTimestamp"].isNull()) + detailInTopicDoObject.lastTimestamp = std::stol(value["LastTimestamp"].asString()); + if(!value["DelayTime"].isNull()) + detailInTopicDoObject.delayTime = std::stol(value["DelayTime"].asString()); + data_.detailInTopicList.push_back(detailInTopicDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsConsumerAccumulateResult::Data OnsConsumerAccumulateResult::getData()const +{ + return data_; +} + +std::string OnsConsumerAccumulateResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsConsumerGetConnectionRequest.cc b/ons/src/model/OnsConsumerGetConnectionRequest.cc new file mode 100644 index 000000000..607b753d8 --- /dev/null +++ b/ons/src/model/OnsConsumerGetConnectionRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsConsumerGetConnectionRequest; + +OnsConsumerGetConnectionRequest::OnsConsumerGetConnectionRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsConsumerGetConnection") +{} + +OnsConsumerGetConnectionRequest::~OnsConsumerGetConnectionRequest() +{} + +long OnsConsumerGetConnectionRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsConsumerGetConnectionRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsConsumerGetConnectionRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsConsumerGetConnectionRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsConsumerGetConnectionRequest::getGroupId()const +{ + return groupId_; +} + +void OnsConsumerGetConnectionRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + diff --git a/ons/src/model/OnsConsumerGetConnectionResult.cc b/ons/src/model/OnsConsumerGetConnectionResult.cc new file mode 100644 index 000000000..1b4595139 --- /dev/null +++ b/ons/src/model/OnsConsumerGetConnectionResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsConsumerGetConnectionResult::OnsConsumerGetConnectionResult() : + ServiceResult() +{} + +OnsConsumerGetConnectionResult::OnsConsumerGetConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsConsumerGetConnectionResult::~OnsConsumerGetConnectionResult() +{} + +void OnsConsumerGetConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allConnectionList = value["ConnectionList"]["ConnectionDo"]; + for (auto value : allConnectionList) + { + Data::ConnectionDo connectionDoObject; + if(!value["ClientId"].isNull()) + connectionDoObject.clientId = value["ClientId"].asString(); + if(!value["ClientAddr"].isNull()) + connectionDoObject.clientAddr = value["ClientAddr"].asString(); + if(!value["Language"].isNull()) + connectionDoObject.language = value["Language"].asString(); + if(!value["Version"].isNull()) + connectionDoObject.version = value["Version"].asString(); + data_.connectionList.push_back(connectionDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsConsumerGetConnectionResult::Data OnsConsumerGetConnectionResult::getData()const +{ + return data_; +} + +std::string OnsConsumerGetConnectionResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsConsumerResetOffsetRequest.cc b/ons/src/model/OnsConsumerResetOffsetRequest.cc new file mode 100644 index 000000000..d6c37f642 --- /dev/null +++ b/ons/src/model/OnsConsumerResetOffsetRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsConsumerResetOffsetRequest; + +OnsConsumerResetOffsetRequest::OnsConsumerResetOffsetRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsConsumerResetOffset") +{} + +OnsConsumerResetOffsetRequest::~OnsConsumerResetOffsetRequest() +{} + +long OnsConsumerResetOffsetRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsConsumerResetOffsetRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsConsumerResetOffsetRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsConsumerResetOffsetRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsConsumerResetOffsetRequest::getGroupId()const +{ + return groupId_; +} + +void OnsConsumerResetOffsetRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string OnsConsumerResetOffsetRequest::getTopic()const +{ + return topic_; +} + +void OnsConsumerResetOffsetRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +long OnsConsumerResetOffsetRequest::getResetTimestamp()const +{ + return resetTimestamp_; +} + +void OnsConsumerResetOffsetRequest::setResetTimestamp(long resetTimestamp) +{ + resetTimestamp_ = resetTimestamp; + setParameter("ResetTimestamp", std::to_string(resetTimestamp)); +} + +int OnsConsumerResetOffsetRequest::getType()const +{ + return type_; +} + +void OnsConsumerResetOffsetRequest::setType(int type) +{ + type_ = type; + setParameter("Type", std::to_string(type)); +} + diff --git a/ons/src/model/OnsConsumerResetOffsetResult.cc b/ons/src/model/OnsConsumerResetOffsetResult.cc new file mode 100644 index 000000000..a746b82c5 --- /dev/null +++ b/ons/src/model/OnsConsumerResetOffsetResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsConsumerResetOffsetResult::OnsConsumerResetOffsetResult() : + ServiceResult() +{} + +OnsConsumerResetOffsetResult::OnsConsumerResetOffsetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsConsumerResetOffsetResult::~OnsConsumerResetOffsetResult() +{} + +void OnsConsumerResetOffsetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsConsumerResetOffsetResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsConsumerStatusRequest.cc b/ons/src/model/OnsConsumerStatusRequest.cc new file mode 100644 index 000000000..427fd6cc7 --- /dev/null +++ b/ons/src/model/OnsConsumerStatusRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsConsumerStatusRequest; + +OnsConsumerStatusRequest::OnsConsumerStatusRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsConsumerStatus") +{} + +OnsConsumerStatusRequest::~OnsConsumerStatusRequest() +{} + +long OnsConsumerStatusRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsConsumerStatusRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsConsumerStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsConsumerStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +bool OnsConsumerStatusRequest::getNeedJstack()const +{ + return needJstack_; +} + +void OnsConsumerStatusRequest::setNeedJstack(bool needJstack) +{ + needJstack_ = needJstack; + setParameter("NeedJstack", needJstack ? "true" : "false"); +} + +std::string OnsConsumerStatusRequest::getGroupId()const +{ + return groupId_; +} + +void OnsConsumerStatusRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +bool OnsConsumerStatusRequest::getDetail()const +{ + return detail_; +} + +void OnsConsumerStatusRequest::setDetail(bool detail) +{ + detail_ = detail; + setParameter("Detail", detail ? "true" : "false"); +} + diff --git a/ons/src/model/OnsConsumerStatusResult.cc b/ons/src/model/OnsConsumerStatusResult.cc new file mode 100644 index 000000000..97cb2eab2 --- /dev/null +++ b/ons/src/model/OnsConsumerStatusResult.cc @@ -0,0 +1,172 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsConsumerStatusResult::OnsConsumerStatusResult() : + ServiceResult() +{} + +OnsConsumerStatusResult::OnsConsumerStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsConsumerStatusResult::~OnsConsumerStatusResult() +{} + +void OnsConsumerStatusResult::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["Online"].isNull()) + data_.online = dataNode["Online"].asString() == "true"; + if(!dataNode["TotalDiff"].isNull()) + data_.totalDiff = std::stol(dataNode["TotalDiff"].asString()); + if(!dataNode["ConsumeTps"].isNull()) + data_.consumeTps = std::stof(dataNode["ConsumeTps"].asString()); + if(!dataNode["LastTimestamp"].isNull()) + data_.lastTimestamp = std::stol(dataNode["LastTimestamp"].asString()); + if(!dataNode["DelayTime"].isNull()) + data_.delayTime = std::stol(dataNode["DelayTime"].asString()); + if(!dataNode["ConsumeModel"].isNull()) + data_.consumeModel = dataNode["ConsumeModel"].asString(); + if(!dataNode["SubscriptionSame"].isNull()) + data_.subscriptionSame = dataNode["SubscriptionSame"].asString() == "true"; + if(!dataNode["RebalanceOK"].isNull()) + data_.rebalanceOK = dataNode["RebalanceOK"].asString() == "true"; + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + auto allConnectionSet = value["ConnectionSet"]["ConnectionDo"]; + for (auto value : allConnectionSet) + { + Data::ConnectionDo connectionDoObject; + if(!value["ClientId"].isNull()) + connectionDoObject.clientId = value["ClientId"].asString(); + if(!value["ClientAddr"].isNull()) + connectionDoObject.clientAddr = value["ClientAddr"].asString(); + if(!value["Language"].isNull()) + connectionDoObject.language = value["Language"].asString(); + if(!value["Version"].isNull()) + connectionDoObject.version = value["Version"].asString(); + data_.connectionSet.push_back(connectionDoObject); + } + auto allDetailInTopicList = value["DetailInTopicList"]["DetailInTopicDo"]; + for (auto value : allDetailInTopicList) + { + Data::DetailInTopicDo detailInTopicDoObject; + if(!value["Topic"].isNull()) + detailInTopicDoObject.topic = value["Topic"].asString(); + if(!value["TotalDiff"].isNull()) + detailInTopicDoObject.totalDiff = std::stol(value["TotalDiff"].asString()); + if(!value["LastTimestamp"].isNull()) + detailInTopicDoObject.lastTimestamp = std::stol(value["LastTimestamp"].asString()); + if(!value["DelayTime"].isNull()) + detailInTopicDoObject.delayTime = std::stol(value["DelayTime"].asString()); + data_.detailInTopicList.push_back(detailInTopicDoObject); + } + auto allConsumerConnectionInfoList = value["ConsumerConnectionInfoList"]["ConsumerConnectionInfoDo"]; + for (auto value : allConsumerConnectionInfoList) + { + Data::ConsumerConnectionInfoDo consumerConnectionInfoDoObject; + if(!value["ClientId"].isNull()) + consumerConnectionInfoDoObject.clientId = value["ClientId"].asString(); + if(!value["Connection"].isNull()) + consumerConnectionInfoDoObject.connection = value["Connection"].asString(); + if(!value["Language"].isNull()) + consumerConnectionInfoDoObject.language = value["Language"].asString(); + if(!value["Version"].isNull()) + consumerConnectionInfoDoObject.version = value["Version"].asString(); + if(!value["ConsumeModel"].isNull()) + consumerConnectionInfoDoObject.consumeModel = value["ConsumeModel"].asString(); + if(!value["ConsumeType"].isNull()) + consumerConnectionInfoDoObject.consumeType = value["ConsumeType"].asString(); + if(!value["ThreadCount"].isNull()) + consumerConnectionInfoDoObject.threadCount = std::stoi(value["ThreadCount"].asString()); + if(!value["StartTimeStamp"].isNull()) + consumerConnectionInfoDoObject.startTimeStamp = std::stol(value["StartTimeStamp"].asString()); + if(!value["LastTimeStamp"].isNull()) + consumerConnectionInfoDoObject.lastTimeStamp = std::stol(value["LastTimeStamp"].asString()); + auto allSubscriptionSet = value["SubscriptionSet"]["SubscriptionData"]; + for (auto value : allSubscriptionSet) + { + Data::ConsumerConnectionInfoDo::SubscriptionData subscriptionSetObject; + if(!value["Topic"].isNull()) + subscriptionSetObject.topic = value["Topic"].asString(); + if(!value["SubString"].isNull()) + subscriptionSetObject.subString = value["SubString"].asString(); + if(!value["SubVersion"].isNull()) + subscriptionSetObject.subVersion = std::stol(value["SubVersion"].asString()); + auto allTagsSet = value["TagsSet"]["Tag"]; + for (auto value : allTagsSet) + subscriptionSetObject.tagsSet.push_back(value.asString()); + consumerConnectionInfoDoObject.subscriptionSet.push_back(subscriptionSetObject); + } + auto allRunningDataList = value["RunningDataList"]["ConsumerRunningDataDo"]; + for (auto value : allRunningDataList) + { + Data::ConsumerConnectionInfoDo::ConsumerRunningDataDo runningDataListObject; + if(!value["GroupId"].isNull()) + runningDataListObject.groupId = value["GroupId"].asString(); + if(!value["Topic"].isNull()) + runningDataListObject.topic = value["Topic"].asString(); + if(!value["Rt"].isNull()) + runningDataListObject.rt = std::stof(value["Rt"].asString()); + if(!value["OkTps"].isNull()) + runningDataListObject.okTps = std::stof(value["OkTps"].asString()); + if(!value["FailedTps"].isNull()) + runningDataListObject.failedTps = std::stof(value["FailedTps"].asString()); + if(!value["FailedCountPerHour"].isNull()) + runningDataListObject.failedCountPerHour = std::stol(value["FailedCountPerHour"].asString()); + consumerConnectionInfoDoObject.runningDataList.push_back(runningDataListObject); + } + auto allJstack = value["Jstack"]["ThreadTrackDo"]; + for (auto value : allJstack) + { + Data::ConsumerConnectionInfoDo::ThreadTrackDo jstackObject; + if(!value["Thread"].isNull()) + jstackObject.thread = value["Thread"].asString(); + auto allTrackList = value["TrackList"]["Track"]; + for (auto value : allTrackList) + jstackObject.trackList.push_back(value.asString()); + consumerConnectionInfoDoObject.jstack.push_back(jstackObject); + } + data_.consumerConnectionInfoList.push_back(consumerConnectionInfoDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsConsumerStatusResult::Data OnsConsumerStatusResult::getData()const +{ + return data_; +} + +std::string OnsConsumerStatusResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsConsumerTimeSpanRequest.cc b/ons/src/model/OnsConsumerTimeSpanRequest.cc new file mode 100644 index 000000000..c35be961e --- /dev/null +++ b/ons/src/model/OnsConsumerTimeSpanRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsConsumerTimeSpanRequest; + +OnsConsumerTimeSpanRequest::OnsConsumerTimeSpanRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsConsumerTimeSpan") +{} + +OnsConsumerTimeSpanRequest::~OnsConsumerTimeSpanRequest() +{} + +long OnsConsumerTimeSpanRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsConsumerTimeSpanRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsConsumerTimeSpanRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsConsumerTimeSpanRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsConsumerTimeSpanRequest::getGroupId()const +{ + return groupId_; +} + +void OnsConsumerTimeSpanRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string OnsConsumerTimeSpanRequest::getTopic()const +{ + return topic_; +} + +void OnsConsumerTimeSpanRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/ons/src/model/OnsConsumerTimeSpanResult.cc b/ons/src/model/OnsConsumerTimeSpanResult.cc new file mode 100644 index 000000000..f20238e68 --- /dev/null +++ b/ons/src/model/OnsConsumerTimeSpanResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsConsumerTimeSpanResult::OnsConsumerTimeSpanResult() : + ServiceResult() +{} + +OnsConsumerTimeSpanResult::OnsConsumerTimeSpanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsConsumerTimeSpanResult::~OnsConsumerTimeSpanResult() +{} + +void OnsConsumerTimeSpanResult::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["Topic"].isNull()) + data_.topic = dataNode["Topic"].asString(); + if(!dataNode["MinTimeStamp"].isNull()) + data_.minTimeStamp = std::stol(dataNode["MinTimeStamp"].asString()); + if(!dataNode["MaxTimeStamp"].isNull()) + data_.maxTimeStamp = std::stol(dataNode["MaxTimeStamp"].asString()); + if(!dataNode["ConsumeTimeStamp"].isNull()) + data_.consumeTimeStamp = std::stol(dataNode["ConsumeTimeStamp"].asString()); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsConsumerTimeSpanResult::Data OnsConsumerTimeSpanResult::getData()const +{ + return data_; +} + +std::string OnsConsumerTimeSpanResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsDLQMessageGetByIdRequest.cc b/ons/src/model/OnsDLQMessageGetByIdRequest.cc new file mode 100644 index 000000000..9303f4896 --- /dev/null +++ b/ons/src/model/OnsDLQMessageGetByIdRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsDLQMessageGetByIdRequest; + +OnsDLQMessageGetByIdRequest::OnsDLQMessageGetByIdRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageGetById") +{} + +OnsDLQMessageGetByIdRequest::~OnsDLQMessageGetByIdRequest() +{} + +long OnsDLQMessageGetByIdRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsDLQMessageGetByIdRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsDLQMessageGetByIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsDLQMessageGetByIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsDLQMessageGetByIdRequest::getGroupId()const +{ + return groupId_; +} + +void OnsDLQMessageGetByIdRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string OnsDLQMessageGetByIdRequest::getMsgId()const +{ + return msgId_; +} + +void OnsDLQMessageGetByIdRequest::setMsgId(const std::string& msgId) +{ + msgId_ = msgId; + setParameter("MsgId", msgId); +} + diff --git a/ons/src/model/OnsDLQMessageGetByIdResult.cc b/ons/src/model/OnsDLQMessageGetByIdResult.cc new file mode 100644 index 000000000..7a5584f61 --- /dev/null +++ b/ons/src/model/OnsDLQMessageGetByIdResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsDLQMessageGetByIdResult::OnsDLQMessageGetByIdResult() : + ServiceResult() +{} + +OnsDLQMessageGetByIdResult::OnsDLQMessageGetByIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsDLQMessageGetByIdResult::~OnsDLQMessageGetByIdResult() +{} + +void OnsDLQMessageGetByIdResult::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["Topic"].isNull()) + data_.topic = dataNode["Topic"].asString(); + if(!dataNode["Flag"].isNull()) + data_.flag = std::stoi(dataNode["Flag"].asString()); + if(!dataNode["Body"].isNull()) + data_.body = dataNode["Body"].asString(); + if(!dataNode["StoreSize"].isNull()) + data_.storeSize = std::stoi(dataNode["StoreSize"].asString()); + if(!dataNode["BornTimestamp"].isNull()) + data_.bornTimestamp = std::stol(dataNode["BornTimestamp"].asString()); + if(!dataNode["BornHost"].isNull()) + data_.bornHost = dataNode["BornHost"].asString(); + if(!dataNode["StoreTimestamp"].isNull()) + data_.storeTimestamp = std::stol(dataNode["StoreTimestamp"].asString()); + if(!dataNode["StoreHost"].isNull()) + data_.storeHost = dataNode["StoreHost"].asString(); + if(!dataNode["MsgId"].isNull()) + data_.msgId = dataNode["MsgId"].asString(); + if(!dataNode["OffsetId"].isNull()) + data_.offsetId = dataNode["OffsetId"].asString(); + if(!dataNode["BodyCRC"].isNull()) + data_.bodyCRC = std::stoi(dataNode["BodyCRC"].asString()); + if(!dataNode["ReconsumeTimes"].isNull()) + data_.reconsumeTimes = std::stoi(dataNode["ReconsumeTimes"].asString()); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + auto allPropertyList = value["PropertyList"]["MessageProperty"]; + for (auto value : allPropertyList) + { + Data::MessageProperty messagePropertyObject; + if(!value["Name"].isNull()) + messagePropertyObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + messagePropertyObject.value = value["Value"].asString(); + data_.propertyList.push_back(messagePropertyObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsDLQMessageGetByIdResult::Data OnsDLQMessageGetByIdResult::getData()const +{ + return data_; +} + +std::string OnsDLQMessageGetByIdResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc b/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc new file mode 100644 index 000000000..b206c8be2 --- /dev/null +++ b/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsDLQMessagePageQueryByGroupIdRequest; + +OnsDLQMessagePageQueryByGroupIdRequest::OnsDLQMessagePageQueryByGroupIdRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessagePageQueryByGroupId") +{} + +OnsDLQMessagePageQueryByGroupIdRequest::~OnsDLQMessagePageQueryByGroupIdRequest() +{} + +long OnsDLQMessagePageQueryByGroupIdRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsDLQMessagePageQueryByGroupIdRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsDLQMessagePageQueryByGroupIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsDLQMessagePageQueryByGroupIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsDLQMessagePageQueryByGroupIdRequest::getGroupId()const +{ + return groupId_; +} + +void OnsDLQMessagePageQueryByGroupIdRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +int OnsDLQMessagePageQueryByGroupIdRequest::getPageSize()const +{ + return pageSize_; +} + +void OnsDLQMessagePageQueryByGroupIdRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long OnsDLQMessagePageQueryByGroupIdRequest::getEndTime()const +{ + return endTime_; +} + +void OnsDLQMessagePageQueryByGroupIdRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long OnsDLQMessagePageQueryByGroupIdRequest::getBeginTime()const +{ + return beginTime_; +} + +void OnsDLQMessagePageQueryByGroupIdRequest::setBeginTime(long beginTime) +{ + beginTime_ = beginTime; + setParameter("BeginTime", std::to_string(beginTime)); +} + +int OnsDLQMessagePageQueryByGroupIdRequest::getCurrentPage()const +{ + return currentPage_; +} + +void OnsDLQMessagePageQueryByGroupIdRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string OnsDLQMessagePageQueryByGroupIdRequest::getTaskId()const +{ + return taskId_; +} + +void OnsDLQMessagePageQueryByGroupIdRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/ons/src/model/OnsDLQMessagePageQueryByGroupIdResult.cc b/ons/src/model/OnsDLQMessagePageQueryByGroupIdResult.cc new file mode 100644 index 000000000..1ef8f1a86 --- /dev/null +++ b/ons/src/model/OnsDLQMessagePageQueryByGroupIdResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsDLQMessagePageQueryByGroupIdResult::OnsDLQMessagePageQueryByGroupIdResult() : + ServiceResult() +{} + +OnsDLQMessagePageQueryByGroupIdResult::OnsDLQMessagePageQueryByGroupIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsDLQMessagePageQueryByGroupIdResult::~OnsDLQMessagePageQueryByGroupIdResult() +{} + +void OnsDLQMessagePageQueryByGroupIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto msgFoundDoNode = value["MsgFoundDo"]; + if(!msgFoundDoNode["TaskId"].isNull()) + msgFoundDo_.taskId = msgFoundDoNode["TaskId"].asString(); + if(!msgFoundDoNode["MaxPageCount"].isNull()) + msgFoundDo_.maxPageCount = std::stol(msgFoundDoNode["MaxPageCount"].asString()); + if(!msgFoundDoNode["CurrentPage"].isNull()) + msgFoundDo_.currentPage = std::stol(msgFoundDoNode["CurrentPage"].asString()); + auto allMsgFoundList = value["MsgFoundList"]["OnsRestMessageDo"]; + for (auto value : allMsgFoundList) + { + MsgFoundDo::OnsRestMessageDo onsRestMessageDoObject; + if(!value["Topic"].isNull()) + onsRestMessageDoObject.topic = value["Topic"].asString(); + if(!value["Flag"].isNull()) + onsRestMessageDoObject.flag = std::stoi(value["Flag"].asString()); + if(!value["Body"].isNull()) + onsRestMessageDoObject.body = value["Body"].asString(); + if(!value["StoreSize"].isNull()) + onsRestMessageDoObject.storeSize = std::stoi(value["StoreSize"].asString()); + if(!value["BornTimestamp"].isNull()) + onsRestMessageDoObject.bornTimestamp = std::stol(value["BornTimestamp"].asString()); + if(!value["BornHost"].isNull()) + onsRestMessageDoObject.bornHost = value["BornHost"].asString(); + if(!value["StoreTimestamp"].isNull()) + onsRestMessageDoObject.storeTimestamp = std::stol(value["StoreTimestamp"].asString()); + if(!value["StoreHost"].isNull()) + onsRestMessageDoObject.storeHost = value["StoreHost"].asString(); + if(!value["MsgId"].isNull()) + onsRestMessageDoObject.msgId = value["MsgId"].asString(); + if(!value["OffsetId"].isNull()) + onsRestMessageDoObject.offsetId = value["OffsetId"].asString(); + if(!value["BodyCRC"].isNull()) + onsRestMessageDoObject.bodyCRC = std::stoi(value["BodyCRC"].asString()); + if(!value["ReconsumeTimes"].isNull()) + onsRestMessageDoObject.reconsumeTimes = std::stoi(value["ReconsumeTimes"].asString()); + if(!value["InstanceId"].isNull()) + onsRestMessageDoObject.instanceId = value["InstanceId"].asString(); + auto allPropertyList = value["PropertyList"]["MessageProperty"]; + for (auto value : allPropertyList) + { + MsgFoundDo::OnsRestMessageDo::MessageProperty propertyListObject; + if(!value["Name"].isNull()) + propertyListObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + propertyListObject.value = value["Value"].asString(); + onsRestMessageDoObject.propertyList.push_back(propertyListObject); + } + msgFoundDo_.msgFoundList.push_back(onsRestMessageDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsDLQMessagePageQueryByGroupIdResult::MsgFoundDo OnsDLQMessagePageQueryByGroupIdResult::getMsgFoundDo()const +{ + return msgFoundDo_; +} + +std::string OnsDLQMessagePageQueryByGroupIdResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsDLQMessageResendByIdRequest.cc b/ons/src/model/OnsDLQMessageResendByIdRequest.cc new file mode 100644 index 000000000..6ec5831b5 --- /dev/null +++ b/ons/src/model/OnsDLQMessageResendByIdRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsDLQMessageResendByIdRequest; + +OnsDLQMessageResendByIdRequest::OnsDLQMessageResendByIdRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageResendById") +{} + +OnsDLQMessageResendByIdRequest::~OnsDLQMessageResendByIdRequest() +{} + +long OnsDLQMessageResendByIdRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsDLQMessageResendByIdRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsDLQMessageResendByIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsDLQMessageResendByIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsDLQMessageResendByIdRequest::getGroupId()const +{ + return groupId_; +} + +void OnsDLQMessageResendByIdRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string OnsDLQMessageResendByIdRequest::getMsgId()const +{ + return msgId_; +} + +void OnsDLQMessageResendByIdRequest::setMsgId(const std::string& msgId) +{ + msgId_ = msgId; + setParameter("MsgId", msgId); +} + diff --git a/ons/src/model/OnsDLQMessageResendByIdResult.cc b/ons/src/model/OnsDLQMessageResendByIdResult.cc new file mode 100644 index 000000000..e2abd6c96 --- /dev/null +++ b/ons/src/model/OnsDLQMessageResendByIdResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsDLQMessageResendByIdResult::OnsDLQMessageResendByIdResult() : + ServiceResult() +{} + +OnsDLQMessageResendByIdResult::OnsDLQMessageResendByIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsDLQMessageResendByIdResult::~OnsDLQMessageResendByIdResult() +{} + +void OnsDLQMessageResendByIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["MsgId"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::vector OnsDLQMessageResendByIdResult::getData()const +{ + return data_; +} + +std::string OnsDLQMessageResendByIdResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsGroupConsumerUpdateRequest.cc b/ons/src/model/OnsGroupConsumerUpdateRequest.cc new file mode 100644 index 000000000..89b7a2ad5 --- /dev/null +++ b/ons/src/model/OnsGroupConsumerUpdateRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsGroupConsumerUpdateRequest; + +OnsGroupConsumerUpdateRequest::OnsGroupConsumerUpdateRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsGroupConsumerUpdate") +{} + +OnsGroupConsumerUpdateRequest::~OnsGroupConsumerUpdateRequest() +{} + +long OnsGroupConsumerUpdateRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsGroupConsumerUpdateRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +bool OnsGroupConsumerUpdateRequest::getReadEnable()const +{ + return readEnable_; +} + +void OnsGroupConsumerUpdateRequest::setReadEnable(bool readEnable) +{ + readEnable_ = readEnable; + setParameter("ReadEnable", readEnable ? "true" : "false"); +} + +std::string OnsGroupConsumerUpdateRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsGroupConsumerUpdateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsGroupConsumerUpdateRequest::getGroupId()const +{ + return groupId_; +} + +void OnsGroupConsumerUpdateRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + diff --git a/ons/src/model/OnsGroupConsumerUpdateResult.cc b/ons/src/model/OnsGroupConsumerUpdateResult.cc new file mode 100644 index 000000000..a12f29f8f --- /dev/null +++ b/ons/src/model/OnsGroupConsumerUpdateResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsGroupConsumerUpdateResult::OnsGroupConsumerUpdateResult() : + ServiceResult() +{} + +OnsGroupConsumerUpdateResult::OnsGroupConsumerUpdateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsGroupConsumerUpdateResult::~OnsGroupConsumerUpdateResult() +{} + +void OnsGroupConsumerUpdateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsGroupConsumerUpdateResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsGroupCreateRequest.cc b/ons/src/model/OnsGroupCreateRequest.cc new file mode 100644 index 000000000..828280000 --- /dev/null +++ b/ons/src/model/OnsGroupCreateRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsGroupCreateRequest; + +OnsGroupCreateRequest::OnsGroupCreateRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsGroupCreate") +{} + +OnsGroupCreateRequest::~OnsGroupCreateRequest() +{} + +long OnsGroupCreateRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsGroupCreateRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsGroupCreateRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsGroupCreateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsGroupCreateRequest::getGroupId()const +{ + return groupId_; +} + +void OnsGroupCreateRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string OnsGroupCreateRequest::getRemark()const +{ + return remark_; +} + +void OnsGroupCreateRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + diff --git a/ons/src/model/OnsGroupCreateResult.cc b/ons/src/model/OnsGroupCreateResult.cc new file mode 100644 index 000000000..d712bc4b6 --- /dev/null +++ b/ons/src/model/OnsGroupCreateResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsGroupCreateResult::OnsGroupCreateResult() : + ServiceResult() +{} + +OnsGroupCreateResult::OnsGroupCreateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsGroupCreateResult::~OnsGroupCreateResult() +{} + +void OnsGroupCreateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsGroupCreateResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsGroupDeleteRequest.cc b/ons/src/model/OnsGroupDeleteRequest.cc new file mode 100644 index 000000000..e6ef10d72 --- /dev/null +++ b/ons/src/model/OnsGroupDeleteRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsGroupDeleteRequest; + +OnsGroupDeleteRequest::OnsGroupDeleteRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsGroupDelete") +{} + +OnsGroupDeleteRequest::~OnsGroupDeleteRequest() +{} + +long OnsGroupDeleteRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsGroupDeleteRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsGroupDeleteRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsGroupDeleteRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsGroupDeleteRequest::getGroupId()const +{ + return groupId_; +} + +void OnsGroupDeleteRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + diff --git a/ons/src/model/OnsGroupDeleteResult.cc b/ons/src/model/OnsGroupDeleteResult.cc new file mode 100644 index 000000000..bc8893da0 --- /dev/null +++ b/ons/src/model/OnsGroupDeleteResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsGroupDeleteResult::OnsGroupDeleteResult() : + ServiceResult() +{} + +OnsGroupDeleteResult::OnsGroupDeleteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsGroupDeleteResult::~OnsGroupDeleteResult() +{} + +void OnsGroupDeleteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsGroupDeleteResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsGroupListRequest.cc b/ons/src/model/OnsGroupListRequest.cc new file mode 100644 index 000000000..9af8540f1 --- /dev/null +++ b/ons/src/model/OnsGroupListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsGroupListRequest; + +OnsGroupListRequest::OnsGroupListRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsGroupList") +{} + +OnsGroupListRequest::~OnsGroupListRequest() +{} + +long OnsGroupListRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsGroupListRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsGroupListRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsGroupListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsGroupListRequest::getGroupId()const +{ + return groupId_; +} + +void OnsGroupListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + diff --git a/ons/src/model/OnsGroupListResult.cc b/ons/src/model/OnsGroupListResult.cc new file mode 100644 index 000000000..987b2db0f --- /dev/null +++ b/ons/src/model/OnsGroupListResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsGroupListResult::OnsGroupListResult() : + ServiceResult() +{} + +OnsGroupListResult::OnsGroupListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsGroupListResult::~OnsGroupListResult() +{} + +void OnsGroupListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["SubscribeInfoDo"]; + for (auto value : allData) + { + SubscribeInfoDo dataObject; + if(!value["Owner"].isNull()) + dataObject.owner = value["Owner"].asString(); + if(!value["GroupId"].isNull()) + dataObject.groupId = value["GroupId"].asString(); + if(!value["UpdateTime"].isNull()) + dataObject.updateTime = std::stol(value["UpdateTime"].asString()); + if(!value["Remark"].isNull()) + dataObject.remark = value["Remark"].asString(); + if(!value["InstanceId"].isNull()) + dataObject.instanceId = value["InstanceId"].asString(); + if(!value["IndependentNaming"].isNull()) + dataObject.independentNaming = value["IndependentNaming"].asString() == "true"; + data_.push_back(dataObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::vector OnsGroupListResult::getData()const +{ + return data_; +} + +std::string OnsGroupListResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsGroupSubDetailRequest.cc b/ons/src/model/OnsGroupSubDetailRequest.cc new file mode 100644 index 000000000..0ad0db6af --- /dev/null +++ b/ons/src/model/OnsGroupSubDetailRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsGroupSubDetailRequest; + +OnsGroupSubDetailRequest::OnsGroupSubDetailRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsGroupSubDetail") +{} + +OnsGroupSubDetailRequest::~OnsGroupSubDetailRequest() +{} + +long OnsGroupSubDetailRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsGroupSubDetailRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsGroupSubDetailRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsGroupSubDetailRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsGroupSubDetailRequest::getGroupId()const +{ + return groupId_; +} + +void OnsGroupSubDetailRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + diff --git a/ons/src/model/OnsGroupSubDetailResult.cc b/ons/src/model/OnsGroupSubDetailResult.cc new file mode 100644 index 000000000..e0531673f --- /dev/null +++ b/ons/src/model/OnsGroupSubDetailResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsGroupSubDetailResult::OnsGroupSubDetailResult() : + ServiceResult() +{} + +OnsGroupSubDetailResult::OnsGroupSubDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsGroupSubDetailResult::~OnsGroupSubDetailResult() +{} + +void OnsGroupSubDetailResult::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["GroupId"].isNull()) + data_.groupId = dataNode["GroupId"].asString(); + if(!dataNode["Online"].isNull()) + data_.online = dataNode["Online"].asString() == "true"; + if(!dataNode["MessageModel"].isNull()) + data_.messageModel = dataNode["MessageModel"].asString(); + auto allSubscriptionDataList = value["SubscriptionDataList"]["SubscriptionDataListItem"]; + for (auto value : allSubscriptionDataList) + { + Data::SubscriptionDataListItem subscriptionDataListItemObject; + if(!value["Topic"].isNull()) + subscriptionDataListItemObject.topic = value["Topic"].asString(); + if(!value["SubString"].isNull()) + subscriptionDataListItemObject.subString = value["SubString"].asString(); + data_.subscriptionDataList.push_back(subscriptionDataListItemObject); + } + +} + +OnsGroupSubDetailResult::Data OnsGroupSubDetailResult::getData()const +{ + return data_; +} + diff --git a/ons/src/model/OnsInstanceBaseInfoRequest.cc b/ons/src/model/OnsInstanceBaseInfoRequest.cc new file mode 100644 index 000000000..9eab88286 --- /dev/null +++ b/ons/src/model/OnsInstanceBaseInfoRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsInstanceBaseInfoRequest; + +OnsInstanceBaseInfoRequest::OnsInstanceBaseInfoRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsInstanceBaseInfo") +{} + +OnsInstanceBaseInfoRequest::~OnsInstanceBaseInfoRequest() +{} + +long OnsInstanceBaseInfoRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsInstanceBaseInfoRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsInstanceBaseInfoRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsInstanceBaseInfoRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ons/src/model/OnsInstanceBaseInfoResult.cc b/ons/src/model/OnsInstanceBaseInfoResult.cc new file mode 100644 index 000000000..e84aa4476 --- /dev/null +++ b/ons/src/model/OnsInstanceBaseInfoResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsInstanceBaseInfoResult::OnsInstanceBaseInfoResult() : + ServiceResult() +{} + +OnsInstanceBaseInfoResult::OnsInstanceBaseInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsInstanceBaseInfoResult::~OnsInstanceBaseInfoResult() +{} + +void OnsInstanceBaseInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto instanceBaseInfoNode = value["InstanceBaseInfo"]; + if(!instanceBaseInfoNode["InstanceId"].isNull()) + instanceBaseInfo_.instanceId = instanceBaseInfoNode["InstanceId"].asString(); + if(!instanceBaseInfoNode["InstanceStatus"].isNull()) + instanceBaseInfo_.instanceStatus = std::stoi(instanceBaseInfoNode["InstanceStatus"].asString()); + if(!instanceBaseInfoNode["ReleaseTime"].isNull()) + instanceBaseInfo_.releaseTime = std::stol(instanceBaseInfoNode["ReleaseTime"].asString()); + if(!instanceBaseInfoNode["InstanceType"].isNull()) + instanceBaseInfo_.instanceType = std::stoi(instanceBaseInfoNode["InstanceType"].asString()); + if(!instanceBaseInfoNode["InstanceName"].isNull()) + instanceBaseInfo_.instanceName = instanceBaseInfoNode["InstanceName"].asString(); + if(!instanceBaseInfoNode["IndependentNaming"].isNull()) + instanceBaseInfo_.independentNaming = instanceBaseInfoNode["IndependentNaming"].asString() == "true"; + auto endpointsNode = instanceBaseInfoNode["Endpoints"]; + if(!endpointsNode["TcpEndpoint"].isNull()) + instanceBaseInfo_.endpoints.tcpEndpoint = endpointsNode["TcpEndpoint"].asString(); + if(!endpointsNode["HttpInternetEndpoint"].isNull()) + instanceBaseInfo_.endpoints.httpInternetEndpoint = endpointsNode["HttpInternetEndpoint"].asString(); + if(!endpointsNode["HttpInternetSecureEndpoint"].isNull()) + instanceBaseInfo_.endpoints.httpInternetSecureEndpoint = endpointsNode["HttpInternetSecureEndpoint"].asString(); + if(!endpointsNode["HttpInternalEndpoint"].isNull()) + instanceBaseInfo_.endpoints.httpInternalEndpoint = endpointsNode["HttpInternalEndpoint"].asString(); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsInstanceBaseInfoResult::InstanceBaseInfo OnsInstanceBaseInfoResult::getInstanceBaseInfo()const +{ + return instanceBaseInfo_; +} + +std::string OnsInstanceBaseInfoResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsInstanceCreateRequest.cc b/ons/src/model/OnsInstanceCreateRequest.cc new file mode 100644 index 000000000..27cc6787c --- /dev/null +++ b/ons/src/model/OnsInstanceCreateRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsInstanceCreateRequest; + +OnsInstanceCreateRequest::OnsInstanceCreateRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsInstanceCreate") +{} + +OnsInstanceCreateRequest::~OnsInstanceCreateRequest() +{} + +long OnsInstanceCreateRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsInstanceCreateRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsInstanceCreateRequest::getInstanceName()const +{ + return instanceName_; +} + +void OnsInstanceCreateRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +std::string OnsInstanceCreateRequest::getRemark()const +{ + return remark_; +} + +void OnsInstanceCreateRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + diff --git a/ons/src/model/OnsInstanceCreateResult.cc b/ons/src/model/OnsInstanceCreateResult.cc new file mode 100644 index 000000000..35192dc18 --- /dev/null +++ b/ons/src/model/OnsInstanceCreateResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsInstanceCreateResult::OnsInstanceCreateResult() : + ServiceResult() +{} + +OnsInstanceCreateResult::OnsInstanceCreateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsInstanceCreateResult::~OnsInstanceCreateResult() +{} + +void OnsInstanceCreateResult::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["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["InstanceType"].isNull()) + data_.instanceType = std::stoi(dataNode["InstanceType"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsInstanceCreateResult::Data OnsInstanceCreateResult::getData()const +{ + return data_; +} + +std::string OnsInstanceCreateResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsInstanceDeleteRequest.cc b/ons/src/model/OnsInstanceDeleteRequest.cc new file mode 100644 index 000000000..ab5f2b244 --- /dev/null +++ b/ons/src/model/OnsInstanceDeleteRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsInstanceDeleteRequest; + +OnsInstanceDeleteRequest::OnsInstanceDeleteRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsInstanceDelete") +{} + +OnsInstanceDeleteRequest::~OnsInstanceDeleteRequest() +{} + +long OnsInstanceDeleteRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsInstanceDeleteRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsInstanceDeleteRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsInstanceDeleteRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ons/src/model/OnsInstanceDeleteResult.cc b/ons/src/model/OnsInstanceDeleteResult.cc new file mode 100644 index 000000000..687671cda --- /dev/null +++ b/ons/src/model/OnsInstanceDeleteResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsInstanceDeleteResult::OnsInstanceDeleteResult() : + ServiceResult() +{} + +OnsInstanceDeleteResult::OnsInstanceDeleteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsInstanceDeleteResult::~OnsInstanceDeleteResult() +{} + +void OnsInstanceDeleteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsInstanceDeleteResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsInstanceInServiceListRequest.cc b/ons/src/model/OnsInstanceInServiceListRequest.cc new file mode 100644 index 000000000..0f95094ec --- /dev/null +++ b/ons/src/model/OnsInstanceInServiceListRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsInstanceInServiceListRequest; + +OnsInstanceInServiceListRequest::OnsInstanceInServiceListRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsInstanceInServiceList") +{} + +OnsInstanceInServiceListRequest::~OnsInstanceInServiceListRequest() +{} + +long OnsInstanceInServiceListRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsInstanceInServiceListRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + diff --git a/ons/src/model/OnsInstanceInServiceListResult.cc b/ons/src/model/OnsInstanceInServiceListResult.cc new file mode 100644 index 000000000..8a37ddfd8 --- /dev/null +++ b/ons/src/model/OnsInstanceInServiceListResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsInstanceInServiceListResult::OnsInstanceInServiceListResult() : + ServiceResult() +{} + +OnsInstanceInServiceListResult::OnsInstanceInServiceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsInstanceInServiceListResult::~OnsInstanceInServiceListResult() +{} + +void OnsInstanceInServiceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["InstanceVO"]; + for (auto value : allData) + { + InstanceVO dataObject; + if(!value["InstanceId"].isNull()) + dataObject.instanceId = value["InstanceId"].asString(); + if(!value["InstanceStatus"].isNull()) + dataObject.instanceStatus = std::stoi(value["InstanceStatus"].asString()); + if(!value["ReleaseTime"].isNull()) + dataObject.releaseTime = std::stol(value["ReleaseTime"].asString()); + if(!value["InstanceType"].isNull()) + dataObject.instanceType = std::stoi(value["InstanceType"].asString()); + if(!value["InstanceName"].isNull()) + dataObject.instanceName = value["InstanceName"].asString(); + if(!value["IndependentNaming"].isNull()) + dataObject.independentNaming = value["IndependentNaming"].asString() == "true"; + data_.push_back(dataObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::vector OnsInstanceInServiceListResult::getData()const +{ + return data_; +} + +std::string OnsInstanceInServiceListResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsInstanceUpdateRequest.cc b/ons/src/model/OnsInstanceUpdateRequest.cc new file mode 100644 index 000000000..c5823c11d --- /dev/null +++ b/ons/src/model/OnsInstanceUpdateRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsInstanceUpdateRequest; + +OnsInstanceUpdateRequest::OnsInstanceUpdateRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsInstanceUpdate") +{} + +OnsInstanceUpdateRequest::~OnsInstanceUpdateRequest() +{} + +long OnsInstanceUpdateRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsInstanceUpdateRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsInstanceUpdateRequest::getInstanceName()const +{ + return instanceName_; +} + +void OnsInstanceUpdateRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +std::string OnsInstanceUpdateRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsInstanceUpdateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsInstanceUpdateRequest::getRemark()const +{ + return remark_; +} + +void OnsInstanceUpdateRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + diff --git a/ons/src/model/OnsInstanceUpdateResult.cc b/ons/src/model/OnsInstanceUpdateResult.cc new file mode 100644 index 000000000..96e6879de --- /dev/null +++ b/ons/src/model/OnsInstanceUpdateResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsInstanceUpdateResult::OnsInstanceUpdateResult() : + ServiceResult() +{} + +OnsInstanceUpdateResult::OnsInstanceUpdateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsInstanceUpdateResult::~OnsInstanceUpdateResult() +{} + +void OnsInstanceUpdateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsInstanceUpdateResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMessageGetByKeyRequest.cc b/ons/src/model/OnsMessageGetByKeyRequest.cc new file mode 100644 index 000000000..00bab7708 --- /dev/null +++ b/ons/src/model/OnsMessageGetByKeyRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMessageGetByKeyRequest; + +OnsMessageGetByKeyRequest::OnsMessageGetByKeyRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByKey") +{} + +OnsMessageGetByKeyRequest::~OnsMessageGetByKeyRequest() +{} + +long OnsMessageGetByKeyRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMessageGetByKeyRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMessageGetByKeyRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMessageGetByKeyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsMessageGetByKeyRequest::getTopic()const +{ + return topic_; +} + +void OnsMessageGetByKeyRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +std::string OnsMessageGetByKeyRequest::getKey()const +{ + return key_; +} + +void OnsMessageGetByKeyRequest::setKey(const std::string& key) +{ + key_ = key; + setParameter("Key", key); +} + diff --git a/ons/src/model/OnsMessageGetByKeyResult.cc b/ons/src/model/OnsMessageGetByKeyResult.cc new file mode 100644 index 000000000..a6c9563ec --- /dev/null +++ b/ons/src/model/OnsMessageGetByKeyResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMessageGetByKeyResult::OnsMessageGetByKeyResult() : + ServiceResult() +{} + +OnsMessageGetByKeyResult::OnsMessageGetByKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMessageGetByKeyResult::~OnsMessageGetByKeyResult() +{} + +void OnsMessageGetByKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["OnsRestMessageDo"]; + for (auto value : allData) + { + OnsRestMessageDo dataObject; + if(!value["Topic"].isNull()) + dataObject.topic = value["Topic"].asString(); + if(!value["Flag"].isNull()) + dataObject.flag = std::stoi(value["Flag"].asString()); + if(!value["Body"].isNull()) + dataObject.body = value["Body"].asString(); + if(!value["StoreSize"].isNull()) + dataObject.storeSize = std::stoi(value["StoreSize"].asString()); + if(!value["BornTimestamp"].isNull()) + dataObject.bornTimestamp = std::stol(value["BornTimestamp"].asString()); + if(!value["BornHost"].isNull()) + dataObject.bornHost = value["BornHost"].asString(); + if(!value["StoreTimestamp"].isNull()) + dataObject.storeTimestamp = std::stol(value["StoreTimestamp"].asString()); + if(!value["StoreHost"].isNull()) + dataObject.storeHost = value["StoreHost"].asString(); + if(!value["MsgId"].isNull()) + dataObject.msgId = value["MsgId"].asString(); + if(!value["OffsetId"].isNull()) + dataObject.offsetId = value["OffsetId"].asString(); + if(!value["BodyCRC"].isNull()) + dataObject.bodyCRC = std::stoi(value["BodyCRC"].asString()); + if(!value["ReconsumeTimes"].isNull()) + dataObject.reconsumeTimes = std::stoi(value["ReconsumeTimes"].asString()); + if(!value["InstanceId"].isNull()) + dataObject.instanceId = value["InstanceId"].asString(); + auto allPropertyList = value["PropertyList"]["MessageProperty"]; + for (auto value : allPropertyList) + { + OnsRestMessageDo::MessageProperty propertyListObject; + if(!value["Name"].isNull()) + propertyListObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + propertyListObject.value = value["Value"].asString(); + dataObject.propertyList.push_back(propertyListObject); + } + data_.push_back(dataObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::vector OnsMessageGetByKeyResult::getData()const +{ + return data_; +} + +std::string OnsMessageGetByKeyResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMessageGetByMsgIdRequest.cc b/ons/src/model/OnsMessageGetByMsgIdRequest.cc new file mode 100644 index 000000000..46f25ca10 --- /dev/null +++ b/ons/src/model/OnsMessageGetByMsgIdRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMessageGetByMsgIdRequest; + +OnsMessageGetByMsgIdRequest::OnsMessageGetByMsgIdRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByMsgId") +{} + +OnsMessageGetByMsgIdRequest::~OnsMessageGetByMsgIdRequest() +{} + +long OnsMessageGetByMsgIdRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMessageGetByMsgIdRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMessageGetByMsgIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMessageGetByMsgIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsMessageGetByMsgIdRequest::getMsgId()const +{ + return msgId_; +} + +void OnsMessageGetByMsgIdRequest::setMsgId(const std::string& msgId) +{ + msgId_ = msgId; + setParameter("MsgId", msgId); +} + +std::string OnsMessageGetByMsgIdRequest::getTopic()const +{ + return topic_; +} + +void OnsMessageGetByMsgIdRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/ons/src/model/OnsMessageGetByMsgIdResult.cc b/ons/src/model/OnsMessageGetByMsgIdResult.cc new file mode 100644 index 000000000..a64c6bb01 --- /dev/null +++ b/ons/src/model/OnsMessageGetByMsgIdResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMessageGetByMsgIdResult::OnsMessageGetByMsgIdResult() : + ServiceResult() +{} + +OnsMessageGetByMsgIdResult::OnsMessageGetByMsgIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMessageGetByMsgIdResult::~OnsMessageGetByMsgIdResult() +{} + +void OnsMessageGetByMsgIdResult::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["Topic"].isNull()) + data_.topic = dataNode["Topic"].asString(); + if(!dataNode["Flag"].isNull()) + data_.flag = std::stoi(dataNode["Flag"].asString()); + if(!dataNode["Body"].isNull()) + data_.body = dataNode["Body"].asString(); + if(!dataNode["StoreSize"].isNull()) + data_.storeSize = std::stoi(dataNode["StoreSize"].asString()); + if(!dataNode["BornTimestamp"].isNull()) + data_.bornTimestamp = std::stol(dataNode["BornTimestamp"].asString()); + if(!dataNode["BornHost"].isNull()) + data_.bornHost = dataNode["BornHost"].asString(); + if(!dataNode["StoreTimestamp"].isNull()) + data_.storeTimestamp = std::stol(dataNode["StoreTimestamp"].asString()); + if(!dataNode["StoreHost"].isNull()) + data_.storeHost = dataNode["StoreHost"].asString(); + if(!dataNode["MsgId"].isNull()) + data_.msgId = dataNode["MsgId"].asString(); + if(!dataNode["OffsetId"].isNull()) + data_.offsetId = dataNode["OffsetId"].asString(); + if(!dataNode["BodyCRC"].isNull()) + data_.bodyCRC = std::stoi(dataNode["BodyCRC"].asString()); + if(!dataNode["ReconsumeTimes"].isNull()) + data_.reconsumeTimes = std::stoi(dataNode["ReconsumeTimes"].asString()); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + auto allPropertyList = value["PropertyList"]["MessageProperty"]; + for (auto value : allPropertyList) + { + Data::MessageProperty messagePropertyObject; + if(!value["Name"].isNull()) + messagePropertyObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + messagePropertyObject.value = value["Value"].asString(); + data_.propertyList.push_back(messagePropertyObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsMessageGetByMsgIdResult::Data OnsMessageGetByMsgIdResult::getData()const +{ + return data_; +} + +std::string OnsMessageGetByMsgIdResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMessagePageQueryByTopicRequest.cc b/ons/src/model/OnsMessagePageQueryByTopicRequest.cc new file mode 100644 index 000000000..d58c49e10 --- /dev/null +++ b/ons/src/model/OnsMessagePageQueryByTopicRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsMessagePageQueryByTopicRequest; + +OnsMessagePageQueryByTopicRequest::OnsMessagePageQueryByTopicRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMessagePageQueryByTopic") +{} + +OnsMessagePageQueryByTopicRequest::~OnsMessagePageQueryByTopicRequest() +{} + +long OnsMessagePageQueryByTopicRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMessagePageQueryByTopicRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMessagePageQueryByTopicRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMessagePageQueryByTopicRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int OnsMessagePageQueryByTopicRequest::getPageSize()const +{ + return pageSize_; +} + +void OnsMessagePageQueryByTopicRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string OnsMessagePageQueryByTopicRequest::getTopic()const +{ + return topic_; +} + +void OnsMessagePageQueryByTopicRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +long OnsMessagePageQueryByTopicRequest::getEndTime()const +{ + return endTime_; +} + +void OnsMessagePageQueryByTopicRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long OnsMessagePageQueryByTopicRequest::getBeginTime()const +{ + return beginTime_; +} + +void OnsMessagePageQueryByTopicRequest::setBeginTime(long beginTime) +{ + beginTime_ = beginTime; + setParameter("BeginTime", std::to_string(beginTime)); +} + +int OnsMessagePageQueryByTopicRequest::getCurrentPage()const +{ + return currentPage_; +} + +void OnsMessagePageQueryByTopicRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string OnsMessagePageQueryByTopicRequest::getTaskId()const +{ + return taskId_; +} + +void OnsMessagePageQueryByTopicRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/ons/src/model/OnsMessagePageQueryByTopicResult.cc b/ons/src/model/OnsMessagePageQueryByTopicResult.cc new file mode 100644 index 000000000..3f49f464f --- /dev/null +++ b/ons/src/model/OnsMessagePageQueryByTopicResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMessagePageQueryByTopicResult::OnsMessagePageQueryByTopicResult() : + ServiceResult() +{} + +OnsMessagePageQueryByTopicResult::OnsMessagePageQueryByTopicResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMessagePageQueryByTopicResult::~OnsMessagePageQueryByTopicResult() +{} + +void OnsMessagePageQueryByTopicResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto msgFoundDoNode = value["MsgFoundDo"]; + if(!msgFoundDoNode["TaskId"].isNull()) + msgFoundDo_.taskId = msgFoundDoNode["TaskId"].asString(); + if(!msgFoundDoNode["MaxPageCount"].isNull()) + msgFoundDo_.maxPageCount = std::stol(msgFoundDoNode["MaxPageCount"].asString()); + if(!msgFoundDoNode["CurrentPage"].isNull()) + msgFoundDo_.currentPage = std::stol(msgFoundDoNode["CurrentPage"].asString()); + auto allMsgFoundList = value["MsgFoundList"]["OnsRestMessageDo"]; + for (auto value : allMsgFoundList) + { + MsgFoundDo::OnsRestMessageDo onsRestMessageDoObject; + if(!value["Topic"].isNull()) + onsRestMessageDoObject.topic = value["Topic"].asString(); + if(!value["Flag"].isNull()) + onsRestMessageDoObject.flag = std::stoi(value["Flag"].asString()); + if(!value["Body"].isNull()) + onsRestMessageDoObject.body = value["Body"].asString(); + if(!value["StoreSize"].isNull()) + onsRestMessageDoObject.storeSize = std::stoi(value["StoreSize"].asString()); + if(!value["BornTimestamp"].isNull()) + onsRestMessageDoObject.bornTimestamp = std::stol(value["BornTimestamp"].asString()); + if(!value["BornHost"].isNull()) + onsRestMessageDoObject.bornHost = value["BornHost"].asString(); + if(!value["StoreTimestamp"].isNull()) + onsRestMessageDoObject.storeTimestamp = std::stol(value["StoreTimestamp"].asString()); + if(!value["StoreHost"].isNull()) + onsRestMessageDoObject.storeHost = value["StoreHost"].asString(); + if(!value["MsgId"].isNull()) + onsRestMessageDoObject.msgId = value["MsgId"].asString(); + if(!value["OffsetId"].isNull()) + onsRestMessageDoObject.offsetId = value["OffsetId"].asString(); + if(!value["BodyCRC"].isNull()) + onsRestMessageDoObject.bodyCRC = std::stoi(value["BodyCRC"].asString()); + if(!value["ReconsumeTimes"].isNull()) + onsRestMessageDoObject.reconsumeTimes = std::stoi(value["ReconsumeTimes"].asString()); + if(!value["InstanceId"].isNull()) + onsRestMessageDoObject.instanceId = value["InstanceId"].asString(); + auto allPropertyList = value["PropertyList"]["MessageProperty"]; + for (auto value : allPropertyList) + { + MsgFoundDo::OnsRestMessageDo::MessageProperty propertyListObject; + if(!value["Name"].isNull()) + propertyListObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + propertyListObject.value = value["Value"].asString(); + onsRestMessageDoObject.propertyList.push_back(propertyListObject); + } + msgFoundDo_.msgFoundList.push_back(onsRestMessageDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsMessagePageQueryByTopicResult::MsgFoundDo OnsMessagePageQueryByTopicResult::getMsgFoundDo()const +{ + return msgFoundDo_; +} + +std::string OnsMessagePageQueryByTopicResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMessagePushRequest.cc b/ons/src/model/OnsMessagePushRequest.cc new file mode 100644 index 000000000..38236f527 --- /dev/null +++ b/ons/src/model/OnsMessagePushRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsMessagePushRequest; + +OnsMessagePushRequest::OnsMessagePushRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMessagePush") +{} + +OnsMessagePushRequest::~OnsMessagePushRequest() +{} + +long OnsMessagePushRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMessagePushRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMessagePushRequest::getClientId()const +{ + return clientId_; +} + +void OnsMessagePushRequest::setClientId(const std::string& clientId) +{ + clientId_ = clientId; + setParameter("ClientId", clientId); +} + +std::string OnsMessagePushRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMessagePushRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsMessagePushRequest::getGroupId()const +{ + return groupId_; +} + +void OnsMessagePushRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string OnsMessagePushRequest::getMsgId()const +{ + return msgId_; +} + +void OnsMessagePushRequest::setMsgId(const std::string& msgId) +{ + msgId_ = msgId; + setParameter("MsgId", msgId); +} + +std::string OnsMessagePushRequest::getTopic()const +{ + return topic_; +} + +void OnsMessagePushRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/ons/src/model/OnsMessagePushResult.cc b/ons/src/model/OnsMessagePushResult.cc new file mode 100644 index 000000000..e398f3be3 --- /dev/null +++ b/ons/src/model/OnsMessagePushResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMessagePushResult::OnsMessagePushResult() : + ServiceResult() +{} + +OnsMessagePushResult::OnsMessagePushResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMessagePushResult::~OnsMessagePushResult() +{} + +void OnsMessagePushResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsMessagePushResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMessageSendRequest.cc b/ons/src/model/OnsMessageSendRequest.cc new file mode 100644 index 000000000..4eb007c65 --- /dev/null +++ b/ons/src/model/OnsMessageSendRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsMessageSendRequest; + +OnsMessageSendRequest::OnsMessageSendRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMessageSend") +{} + +OnsMessageSendRequest::~OnsMessageSendRequest() +{} + +long OnsMessageSendRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMessageSendRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMessageSendRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMessageSendRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsMessageSendRequest::getTopic()const +{ + return topic_; +} + +void OnsMessageSendRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +std::string OnsMessageSendRequest::getTag()const +{ + return tag_; +} + +void OnsMessageSendRequest::setTag(const std::string& tag) +{ + tag_ = tag; + setParameter("Tag", tag); +} + +std::string OnsMessageSendRequest::getMessage()const +{ + return message_; +} + +void OnsMessageSendRequest::setMessage(const std::string& message) +{ + message_ = message; + setParameter("Message", message); +} + +std::string OnsMessageSendRequest::getKey()const +{ + return key_; +} + +void OnsMessageSendRequest::setKey(const std::string& key) +{ + key_ = key; + setParameter("Key", key); +} + diff --git a/ons/src/model/OnsMessageSendResult.cc b/ons/src/model/OnsMessageSendResult.cc new file mode 100644 index 000000000..95e5499ca --- /dev/null +++ b/ons/src/model/OnsMessageSendResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMessageSendResult::OnsMessageSendResult() : + ServiceResult() +{} + +OnsMessageSendResult::OnsMessageSendResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMessageSendResult::~OnsMessageSendResult() +{} + +void OnsMessageSendResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string OnsMessageSendResult::getData()const +{ + return data_; +} + +std::string OnsMessageSendResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMessageTraceRequest.cc b/ons/src/model/OnsMessageTraceRequest.cc new file mode 100644 index 000000000..c58dd13fc --- /dev/null +++ b/ons/src/model/OnsMessageTraceRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMessageTraceRequest; + +OnsMessageTraceRequest::OnsMessageTraceRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMessageTrace") +{} + +OnsMessageTraceRequest::~OnsMessageTraceRequest() +{} + +long OnsMessageTraceRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMessageTraceRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMessageTraceRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMessageTraceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsMessageTraceRequest::getTopic()const +{ + return topic_; +} + +void OnsMessageTraceRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +std::string OnsMessageTraceRequest::getMsgId()const +{ + return msgId_; +} + +void OnsMessageTraceRequest::setMsgId(const std::string& msgId) +{ + msgId_ = msgId; + setParameter("MsgId", msgId); +} + diff --git a/ons/src/model/OnsMessageTraceResult.cc b/ons/src/model/OnsMessageTraceResult.cc new file mode 100644 index 000000000..72f0b3044 --- /dev/null +++ b/ons/src/model/OnsMessageTraceResult.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMessageTraceResult::OnsMessageTraceResult() : + ServiceResult() +{} + +OnsMessageTraceResult::OnsMessageTraceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMessageTraceResult::~OnsMessageTraceResult() +{} + +void OnsMessageTraceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["MessageTrack"]; + for (auto value : allData) + { + MessageTrack dataObject; + if(!value["ConsumerGroup"].isNull()) + dataObject.consumerGroup = value["ConsumerGroup"].asString(); + if(!value["TrackType"].isNull()) + dataObject.trackType = value["TrackType"].asString(); + if(!value["ExceptionDesc"].isNull()) + dataObject.exceptionDesc = value["ExceptionDesc"].asString(); + if(!value["InstanceId"].isNull()) + dataObject.instanceId = value["InstanceId"].asString(); + data_.push_back(dataObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::vector OnsMessageTraceResult::getData()const +{ + return data_; +} + +std::string OnsMessageTraceResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMqttGroupIdCreateRequest.cc b/ons/src/model/OnsMqttGroupIdCreateRequest.cc new file mode 100644 index 000000000..240b22fe8 --- /dev/null +++ b/ons/src/model/OnsMqttGroupIdCreateRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsMqttGroupIdCreateRequest; + +OnsMqttGroupIdCreateRequest::OnsMqttGroupIdCreateRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMqttGroupIdCreate") +{} + +OnsMqttGroupIdCreateRequest::~OnsMqttGroupIdCreateRequest() +{} + +long OnsMqttGroupIdCreateRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMqttGroupIdCreateRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMqttGroupIdCreateRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMqttGroupIdCreateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsMqttGroupIdCreateRequest::getRegionId()const +{ + return regionId_; +} + +void OnsMqttGroupIdCreateRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string OnsMqttGroupIdCreateRequest::getGroupId()const +{ + return groupId_; +} + +void OnsMqttGroupIdCreateRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string OnsMqttGroupIdCreateRequest::getTopic()const +{ + return topic_; +} + +void OnsMqttGroupIdCreateRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/ons/src/model/OnsMqttGroupIdCreateResult.cc b/ons/src/model/OnsMqttGroupIdCreateResult.cc new file mode 100644 index 000000000..4d4b7ea85 --- /dev/null +++ b/ons/src/model/OnsMqttGroupIdCreateResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMqttGroupIdCreateResult::OnsMqttGroupIdCreateResult() : + ServiceResult() +{} + +OnsMqttGroupIdCreateResult::OnsMqttGroupIdCreateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMqttGroupIdCreateResult::~OnsMqttGroupIdCreateResult() +{} + +void OnsMqttGroupIdCreateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsMqttGroupIdCreateResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMqttGroupIdDeleteRequest.cc b/ons/src/model/OnsMqttGroupIdDeleteRequest.cc new file mode 100644 index 000000000..32e8089b0 --- /dev/null +++ b/ons/src/model/OnsMqttGroupIdDeleteRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMqttGroupIdDeleteRequest; + +OnsMqttGroupIdDeleteRequest::OnsMqttGroupIdDeleteRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMqttGroupIdDelete") +{} + +OnsMqttGroupIdDeleteRequest::~OnsMqttGroupIdDeleteRequest() +{} + +long OnsMqttGroupIdDeleteRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMqttGroupIdDeleteRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMqttGroupIdDeleteRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMqttGroupIdDeleteRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsMqttGroupIdDeleteRequest::getRegionId()const +{ + return regionId_; +} + +void OnsMqttGroupIdDeleteRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string OnsMqttGroupIdDeleteRequest::getGroupId()const +{ + return groupId_; +} + +void OnsMqttGroupIdDeleteRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + diff --git a/ons/src/model/OnsMqttGroupIdDeleteResult.cc b/ons/src/model/OnsMqttGroupIdDeleteResult.cc new file mode 100644 index 000000000..1e71e1b24 --- /dev/null +++ b/ons/src/model/OnsMqttGroupIdDeleteResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMqttGroupIdDeleteResult::OnsMqttGroupIdDeleteResult() : + ServiceResult() +{} + +OnsMqttGroupIdDeleteResult::OnsMqttGroupIdDeleteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMqttGroupIdDeleteResult::~OnsMqttGroupIdDeleteResult() +{} + +void OnsMqttGroupIdDeleteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsMqttGroupIdDeleteResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMqttGroupIdListRequest.cc b/ons/src/model/OnsMqttGroupIdListRequest.cc new file mode 100644 index 000000000..1df242d21 --- /dev/null +++ b/ons/src/model/OnsMqttGroupIdListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMqttGroupIdListRequest; + +OnsMqttGroupIdListRequest::OnsMqttGroupIdListRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMqttGroupIdList") +{} + +OnsMqttGroupIdListRequest::~OnsMqttGroupIdListRequest() +{} + +long OnsMqttGroupIdListRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMqttGroupIdListRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMqttGroupIdListRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMqttGroupIdListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ons/src/model/OnsMqttGroupIdListResult.cc b/ons/src/model/OnsMqttGroupIdListResult.cc new file mode 100644 index 000000000..cd1d4c63f --- /dev/null +++ b/ons/src/model/OnsMqttGroupIdListResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMqttGroupIdListResult::OnsMqttGroupIdListResult() : + ServiceResult() +{} + +OnsMqttGroupIdListResult::OnsMqttGroupIdListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMqttGroupIdListResult::~OnsMqttGroupIdListResult() +{} + +void OnsMqttGroupIdListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["MqttGroupIdDo"]; + for (auto value : allData) + { + MqttGroupIdDo dataObject; + if(!value["Id"].isNull()) + dataObject.id = std::stol(value["Id"].asString()); + if(!value["ChannelId"].isNull()) + dataObject.channelId = std::stoi(value["ChannelId"].asString()); + if(!value["Owner"].isNull()) + dataObject.owner = value["Owner"].asString(); + if(!value["GroupId"].isNull()) + dataObject.groupId = value["GroupId"].asString(); + if(!value["Topic"].isNull()) + dataObject.topic = value["Topic"].asString(); + if(!value["Status"].isNull()) + dataObject.status = std::stoi(value["Status"].asString()); + if(!value["CreateTime"].isNull()) + dataObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["UpdateTime"].isNull()) + dataObject.updateTime = std::stol(value["UpdateTime"].asString()); + if(!value["InstanceId"].isNull()) + dataObject.instanceId = value["InstanceId"].asString(); + if(!value["IndependentNaming"].isNull()) + dataObject.independentNaming = value["IndependentNaming"].asString() == "true"; + data_.push_back(dataObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::vector OnsMqttGroupIdListResult::getData()const +{ + return data_; +} + +std::string OnsMqttGroupIdListResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMqttQueryClientByClientIdRequest.cc b/ons/src/model/OnsMqttQueryClientByClientIdRequest.cc new file mode 100644 index 000000000..5d82f6dca --- /dev/null +++ b/ons/src/model/OnsMqttQueryClientByClientIdRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMqttQueryClientByClientIdRequest; + +OnsMqttQueryClientByClientIdRequest::OnsMqttQueryClientByClientIdRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMqttQueryClientByClientId") +{} + +OnsMqttQueryClientByClientIdRequest::~OnsMqttQueryClientByClientIdRequest() +{} + +long OnsMqttQueryClientByClientIdRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMqttQueryClientByClientIdRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMqttQueryClientByClientIdRequest::getClientId()const +{ + return clientId_; +} + +void OnsMqttQueryClientByClientIdRequest::setClientId(const std::string& clientId) +{ + clientId_ = clientId; + setParameter("ClientId", clientId); +} + +std::string OnsMqttQueryClientByClientIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMqttQueryClientByClientIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ons/src/model/OnsMqttQueryClientByClientIdResult.cc b/ons/src/model/OnsMqttQueryClientByClientIdResult.cc new file mode 100644 index 000000000..397ee248a --- /dev/null +++ b/ons/src/model/OnsMqttQueryClientByClientIdResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMqttQueryClientByClientIdResult::OnsMqttQueryClientByClientIdResult() : + ServiceResult() +{} + +OnsMqttQueryClientByClientIdResult::OnsMqttQueryClientByClientIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMqttQueryClientByClientIdResult::~OnsMqttQueryClientByClientIdResult() +{} + +void OnsMqttQueryClientByClientIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto mqttClientInfoDoNode = value["MqttClientInfoDo"]; + if(!mqttClientInfoDoNode["Online"].isNull()) + mqttClientInfoDo_.online = mqttClientInfoDoNode["Online"].asString() == "true"; + if(!mqttClientInfoDoNode["ClientId"].isNull()) + mqttClientInfoDo_.clientId = mqttClientInfoDoNode["ClientId"].asString(); + if(!mqttClientInfoDoNode["SocketChannel"].isNull()) + mqttClientInfoDo_.socketChannel = mqttClientInfoDoNode["SocketChannel"].asString(); + if(!mqttClientInfoDoNode["LastTouch"].isNull()) + mqttClientInfoDo_.lastTouch = std::stol(mqttClientInfoDoNode["LastTouch"].asString()); + auto allSubScriptonData = value["SubScriptonData"]["SubscriptionDo"]; + for (auto value : allSubScriptonData) + { + MqttClientInfoDo::SubscriptionDo subscriptionDoObject; + if(!value["ParentTopic"].isNull()) + subscriptionDoObject.parentTopic = value["ParentTopic"].asString(); + if(!value["SubTopic"].isNull()) + subscriptionDoObject.subTopic = value["SubTopic"].asString(); + if(!value["Qos"].isNull()) + subscriptionDoObject.qos = std::stoi(value["Qos"].asString()); + mqttClientInfoDo_.subScriptonData.push_back(subscriptionDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsMqttQueryClientByClientIdResult::MqttClientInfoDo OnsMqttQueryClientByClientIdResult::getMqttClientInfoDo()const +{ + return mqttClientInfoDo_; +} + +std::string OnsMqttQueryClientByClientIdResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMqttQueryClientByGroupIdRequest.cc b/ons/src/model/OnsMqttQueryClientByGroupIdRequest.cc new file mode 100644 index 000000000..40772707e --- /dev/null +++ b/ons/src/model/OnsMqttQueryClientByGroupIdRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMqttQueryClientByGroupIdRequest; + +OnsMqttQueryClientByGroupIdRequest::OnsMqttQueryClientByGroupIdRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMqttQueryClientByGroupId") +{} + +OnsMqttQueryClientByGroupIdRequest::~OnsMqttQueryClientByGroupIdRequest() +{} + +long OnsMqttQueryClientByGroupIdRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMqttQueryClientByGroupIdRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMqttQueryClientByGroupIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMqttQueryClientByGroupIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsMqttQueryClientByGroupIdRequest::getGroupId()const +{ + return groupId_; +} + +void OnsMqttQueryClientByGroupIdRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + diff --git a/ons/src/model/OnsMqttQueryClientByGroupIdResult.cc b/ons/src/model/OnsMqttQueryClientByGroupIdResult.cc new file mode 100644 index 000000000..05482edbd --- /dev/null +++ b/ons/src/model/OnsMqttQueryClientByGroupIdResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMqttQueryClientByGroupIdResult::OnsMqttQueryClientByGroupIdResult() : + ServiceResult() +{} + +OnsMqttQueryClientByGroupIdResult::OnsMqttQueryClientByGroupIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMqttQueryClientByGroupIdResult::~OnsMqttQueryClientByGroupIdResult() +{} + +void OnsMqttQueryClientByGroupIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto mqttClientSetDoNode = value["MqttClientSetDo"]; + if(!mqttClientSetDoNode["OnlineCount"].isNull()) + mqttClientSetDo_.onlineCount = std::stol(mqttClientSetDoNode["OnlineCount"].asString()); + if(!mqttClientSetDoNode["PersistCount"].isNull()) + mqttClientSetDo_.persistCount = std::stol(mqttClientSetDoNode["PersistCount"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsMqttQueryClientByGroupIdResult::MqttClientSetDo OnsMqttQueryClientByGroupIdResult::getMqttClientSetDo()const +{ + return mqttClientSetDo_; +} + +std::string OnsMqttQueryClientByGroupIdResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMqttQueryClientByTopicRequest.cc b/ons/src/model/OnsMqttQueryClientByTopicRequest.cc new file mode 100644 index 000000000..6b79c0935 --- /dev/null +++ b/ons/src/model/OnsMqttQueryClientByTopicRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMqttQueryClientByTopicRequest; + +OnsMqttQueryClientByTopicRequest::OnsMqttQueryClientByTopicRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMqttQueryClientByTopic") +{} + +OnsMqttQueryClientByTopicRequest::~OnsMqttQueryClientByTopicRequest() +{} + +long OnsMqttQueryClientByTopicRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMqttQueryClientByTopicRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMqttQueryClientByTopicRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMqttQueryClientByTopicRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsMqttQueryClientByTopicRequest::getParentTopic()const +{ + return parentTopic_; +} + +void OnsMqttQueryClientByTopicRequest::setParentTopic(const std::string& parentTopic) +{ + parentTopic_ = parentTopic; + setParameter("ParentTopic", parentTopic); +} + +std::string OnsMqttQueryClientByTopicRequest::getSubTopic()const +{ + return subTopic_; +} + +void OnsMqttQueryClientByTopicRequest::setSubTopic(const std::string& subTopic) +{ + subTopic_ = subTopic; + setParameter("SubTopic", subTopic); +} + diff --git a/ons/src/model/OnsMqttQueryClientByTopicResult.cc b/ons/src/model/OnsMqttQueryClientByTopicResult.cc new file mode 100644 index 000000000..16185830d --- /dev/null +++ b/ons/src/model/OnsMqttQueryClientByTopicResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMqttQueryClientByTopicResult::OnsMqttQueryClientByTopicResult() : + ServiceResult() +{} + +OnsMqttQueryClientByTopicResult::OnsMqttQueryClientByTopicResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMqttQueryClientByTopicResult::~OnsMqttQueryClientByTopicResult() +{} + +void OnsMqttQueryClientByTopicResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto mqttClientSetDoNode = value["MqttClientSetDo"]; + if(!mqttClientSetDoNode["OnlineCount"].isNull()) + mqttClientSetDo_.onlineCount = std::stol(mqttClientSetDoNode["OnlineCount"].asString()); + if(!mqttClientSetDoNode["PersistCount"].isNull()) + mqttClientSetDo_.persistCount = std::stol(mqttClientSetDoNode["PersistCount"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsMqttQueryClientByTopicResult::MqttClientSetDo OnsMqttQueryClientByTopicResult::getMqttClientSetDo()const +{ + return mqttClientSetDo_; +} + +std::string OnsMqttQueryClientByTopicResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMqttQueryHistoryOnlineRequest.cc b/ons/src/model/OnsMqttQueryHistoryOnlineRequest.cc new file mode 100644 index 000000000..7f300f08f --- /dev/null +++ b/ons/src/model/OnsMqttQueryHistoryOnlineRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsMqttQueryHistoryOnlineRequest; + +OnsMqttQueryHistoryOnlineRequest::OnsMqttQueryHistoryOnlineRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMqttQueryHistoryOnline") +{} + +OnsMqttQueryHistoryOnlineRequest::~OnsMqttQueryHistoryOnlineRequest() +{} + +long OnsMqttQueryHistoryOnlineRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMqttQueryHistoryOnlineRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMqttQueryHistoryOnlineRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMqttQueryHistoryOnlineRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsMqttQueryHistoryOnlineRequest::getGroupId()const +{ + return groupId_; +} + +void OnsMqttQueryHistoryOnlineRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +long OnsMqttQueryHistoryOnlineRequest::getEndTime()const +{ + return endTime_; +} + +void OnsMqttQueryHistoryOnlineRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long OnsMqttQueryHistoryOnlineRequest::getBeginTime()const +{ + return beginTime_; +} + +void OnsMqttQueryHistoryOnlineRequest::setBeginTime(long beginTime) +{ + beginTime_ = beginTime; + setParameter("BeginTime", std::to_string(beginTime)); +} + diff --git a/ons/src/model/OnsMqttQueryHistoryOnlineResult.cc b/ons/src/model/OnsMqttQueryHistoryOnlineResult.cc new file mode 100644 index 000000000..fecac5e75 --- /dev/null +++ b/ons/src/model/OnsMqttQueryHistoryOnlineResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMqttQueryHistoryOnlineResult::OnsMqttQueryHistoryOnlineResult() : + ServiceResult() +{} + +OnsMqttQueryHistoryOnlineResult::OnsMqttQueryHistoryOnlineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMqttQueryHistoryOnlineResult::~OnsMqttQueryHistoryOnlineResult() +{} + +void OnsMqttQueryHistoryOnlineResult::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["Title"].isNull()) + data_.title = dataNode["Title"].asString(); + if(!dataNode["XUnit"].isNull()) + data_.xUnit = dataNode["XUnit"].asString(); + if(!dataNode["YUnit"].isNull()) + data_.yUnit = dataNode["YUnit"].asString(); + auto allRecords = value["Records"]["StatsDataDo"]; + for (auto value : allRecords) + { + Data::StatsDataDo statsDataDoObject; + if(!value["X"].isNull()) + statsDataDoObject.x = std::stol(value["X"].asString()); + if(!value["Y"].isNull()) + statsDataDoObject.y = std::stof(value["Y"].asString()); + data_.records.push_back(statsDataDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsMqttQueryHistoryOnlineResult::Data OnsMqttQueryHistoryOnlineResult::getData()const +{ + return data_; +} + +std::string OnsMqttQueryHistoryOnlineResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsMqttQueryMsgTransTrendRequest.cc b/ons/src/model/OnsMqttQueryMsgTransTrendRequest.cc new file mode 100644 index 000000000..42fa966e3 --- /dev/null +++ b/ons/src/model/OnsMqttQueryMsgTransTrendRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsMqttQueryMsgTransTrendRequest; + +OnsMqttQueryMsgTransTrendRequest::OnsMqttQueryMsgTransTrendRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsMqttQueryMsgTransTrend") +{} + +OnsMqttQueryMsgTransTrendRequest::~OnsMqttQueryMsgTransTrendRequest() +{} + +long OnsMqttQueryMsgTransTrendRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsMqttQueryMsgTransTrendRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsMqttQueryMsgTransTrendRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsMqttQueryMsgTransTrendRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int OnsMqttQueryMsgTransTrendRequest::getQos()const +{ + return qos_; +} + +void OnsMqttQueryMsgTransTrendRequest::setQos(int qos) +{ + qos_ = qos; + setParameter("Qos", std::to_string(qos)); +} + +std::string OnsMqttQueryMsgTransTrendRequest::getTransType()const +{ + return transType_; +} + +void OnsMqttQueryMsgTransTrendRequest::setTransType(const std::string& transType) +{ + transType_ = transType; + setParameter("TransType", transType); +} + +long OnsMqttQueryMsgTransTrendRequest::getEndTime()const +{ + return endTime_; +} + +void OnsMqttQueryMsgTransTrendRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long OnsMqttQueryMsgTransTrendRequest::getBeginTime()const +{ + return beginTime_; +} + +void OnsMqttQueryMsgTransTrendRequest::setBeginTime(long beginTime) +{ + beginTime_ = beginTime; + setParameter("BeginTime", std::to_string(beginTime)); +} + +std::string OnsMqttQueryMsgTransTrendRequest::getTpsType()const +{ + return tpsType_; +} + +void OnsMqttQueryMsgTransTrendRequest::setTpsType(const std::string& tpsType) +{ + tpsType_ = tpsType; + setParameter("TpsType", tpsType); +} + +std::string OnsMqttQueryMsgTransTrendRequest::getParentTopic()const +{ + return parentTopic_; +} + +void OnsMqttQueryMsgTransTrendRequest::setParentTopic(const std::string& parentTopic) +{ + parentTopic_ = parentTopic; + setParameter("ParentTopic", parentTopic); +} + +std::string OnsMqttQueryMsgTransTrendRequest::getMsgType()const +{ + return msgType_; +} + +void OnsMqttQueryMsgTransTrendRequest::setMsgType(const std::string& msgType) +{ + msgType_ = msgType; + setParameter("MsgType", msgType); +} + +std::string OnsMqttQueryMsgTransTrendRequest::getSubTopic()const +{ + return subTopic_; +} + +void OnsMqttQueryMsgTransTrendRequest::setSubTopic(const std::string& subTopic) +{ + subTopic_ = subTopic; + setParameter("SubTopic", subTopic); +} + diff --git a/ons/src/model/OnsMqttQueryMsgTransTrendResult.cc b/ons/src/model/OnsMqttQueryMsgTransTrendResult.cc new file mode 100644 index 000000000..f9adfa59d --- /dev/null +++ b/ons/src/model/OnsMqttQueryMsgTransTrendResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsMqttQueryMsgTransTrendResult::OnsMqttQueryMsgTransTrendResult() : + ServiceResult() +{} + +OnsMqttQueryMsgTransTrendResult::OnsMqttQueryMsgTransTrendResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsMqttQueryMsgTransTrendResult::~OnsMqttQueryMsgTransTrendResult() +{} + +void OnsMqttQueryMsgTransTrendResult::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["Title"].isNull()) + data_.title = dataNode["Title"].asString(); + if(!dataNode["XUnit"].isNull()) + data_.xUnit = dataNode["XUnit"].asString(); + if(!dataNode["YUnit"].isNull()) + data_.yUnit = dataNode["YUnit"].asString(); + auto allRecords = value["Records"]["StatsDataDo"]; + for (auto value : allRecords) + { + Data::StatsDataDo statsDataDoObject; + if(!value["X"].isNull()) + statsDataDoObject.x = std::stol(value["X"].asString()); + if(!value["Y"].isNull()) + statsDataDoObject.y = std::stof(value["Y"].asString()); + data_.records.push_back(statsDataDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsMqttQueryMsgTransTrendResult::Data OnsMqttQueryMsgTransTrendResult::getData()const +{ + return data_; +} + +std::string OnsMqttQueryMsgTransTrendResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsRegionListRequest.cc b/ons/src/model/OnsRegionListRequest.cc new file mode 100644 index 000000000..969e5afa9 --- /dev/null +++ b/ons/src/model/OnsRegionListRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsRegionListRequest; + +OnsRegionListRequest::OnsRegionListRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsRegionList") +{} + +OnsRegionListRequest::~OnsRegionListRequest() +{} + +long OnsRegionListRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsRegionListRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + diff --git a/ons/src/model/OnsRegionListResult.cc b/ons/src/model/OnsRegionListResult.cc new file mode 100644 index 000000000..fad7bd39c --- /dev/null +++ b/ons/src/model/OnsRegionListResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsRegionListResult::OnsRegionListResult() : + ServiceResult() +{} + +OnsRegionListResult::OnsRegionListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsRegionListResult::~OnsRegionListResult() +{} + +void OnsRegionListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["RegionDo"]; + for (auto value : allData) + { + RegionDo dataObject; + if(!value["Id"].isNull()) + dataObject.id = std::stol(value["Id"].asString()); + if(!value["OnsRegionId"].isNull()) + dataObject.onsRegionId = value["OnsRegionId"].asString(); + if(!value["RegionName"].isNull()) + dataObject.regionName = value["RegionName"].asString(); + if(!value["ChannelId"].isNull()) + dataObject.channelId = std::stoi(value["ChannelId"].asString()); + if(!value["ChannelName"].isNull()) + dataObject.channelName = value["ChannelName"].asString(); + if(!value["CreateTime"].isNull()) + dataObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["UpdateTime"].isNull()) + dataObject.updateTime = std::stol(value["UpdateTime"].asString()); + data_.push_back(dataObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::vector OnsRegionListResult::getData()const +{ + return data_; +} + +std::string OnsRegionListResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsTopicCreateRequest.cc b/ons/src/model/OnsTopicCreateRequest.cc new file mode 100644 index 000000000..ae875ee12 --- /dev/null +++ b/ons/src/model/OnsTopicCreateRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsTopicCreateRequest; + +OnsTopicCreateRequest::OnsTopicCreateRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTopicCreate") +{} + +OnsTopicCreateRequest::~OnsTopicCreateRequest() +{} + +long OnsTopicCreateRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTopicCreateRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsTopicCreateRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsTopicCreateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int OnsTopicCreateRequest::getMessageType()const +{ + return messageType_; +} + +void OnsTopicCreateRequest::setMessageType(int messageType) +{ + messageType_ = messageType; + setParameter("MessageType", std::to_string(messageType)); +} + +std::string OnsTopicCreateRequest::getTopic()const +{ + return topic_; +} + +void OnsTopicCreateRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +std::string OnsTopicCreateRequest::getRemark()const +{ + return remark_; +} + +void OnsTopicCreateRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + diff --git a/ons/src/model/OnsTopicCreateResult.cc b/ons/src/model/OnsTopicCreateResult.cc new file mode 100644 index 000000000..351431745 --- /dev/null +++ b/ons/src/model/OnsTopicCreateResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTopicCreateResult::OnsTopicCreateResult() : + ServiceResult() +{} + +OnsTopicCreateResult::OnsTopicCreateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTopicCreateResult::~OnsTopicCreateResult() +{} + +void OnsTopicCreateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsTopicCreateResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsTopicDeleteRequest.cc b/ons/src/model/OnsTopicDeleteRequest.cc new file mode 100644 index 000000000..070beaa79 --- /dev/null +++ b/ons/src/model/OnsTopicDeleteRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicDeleteRequest; + +OnsTopicDeleteRequest::OnsTopicDeleteRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTopicDelete") +{} + +OnsTopicDeleteRequest::~OnsTopicDeleteRequest() +{} + +long OnsTopicDeleteRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTopicDeleteRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsTopicDeleteRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsTopicDeleteRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsTopicDeleteRequest::getTopic()const +{ + return topic_; +} + +void OnsTopicDeleteRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/ons/src/model/OnsTopicDeleteResult.cc b/ons/src/model/OnsTopicDeleteResult.cc new file mode 100644 index 000000000..7a530782a --- /dev/null +++ b/ons/src/model/OnsTopicDeleteResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTopicDeleteResult::OnsTopicDeleteResult() : + ServiceResult() +{} + +OnsTopicDeleteResult::OnsTopicDeleteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTopicDeleteResult::~OnsTopicDeleteResult() +{} + +void OnsTopicDeleteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsTopicDeleteResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsTopicListRequest.cc b/ons/src/model/OnsTopicListRequest.cc new file mode 100644 index 000000000..8b34941ce --- /dev/null +++ b/ons/src/model/OnsTopicListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicListRequest; + +OnsTopicListRequest::OnsTopicListRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTopicList") +{} + +OnsTopicListRequest::~OnsTopicListRequest() +{} + +long OnsTopicListRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTopicListRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsTopicListRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsTopicListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsTopicListRequest::getTopic()const +{ + return topic_; +} + +void OnsTopicListRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/ons/src/model/OnsTopicListResult.cc b/ons/src/model/OnsTopicListResult.cc new file mode 100644 index 000000000..8c25188ea --- /dev/null +++ b/ons/src/model/OnsTopicListResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTopicListResult::OnsTopicListResult() : + ServiceResult() +{} + +OnsTopicListResult::OnsTopicListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTopicListResult::~OnsTopicListResult() +{} + +void OnsTopicListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["PublishInfoDo"]; + for (auto value : allData) + { + PublishInfoDo dataObject; + if(!value["Topic"].isNull()) + dataObject.topic = value["Topic"].asString(); + if(!value["Owner"].isNull()) + dataObject.owner = value["Owner"].asString(); + if(!value["Relation"].isNull()) + dataObject.relation = std::stoi(value["Relation"].asString()); + if(!value["RelationName"].isNull()) + dataObject.relationName = value["RelationName"].asString(); + if(!value["CreateTime"].isNull()) + dataObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["Remark"].isNull()) + dataObject.remark = value["Remark"].asString(); + if(!value["MessageType"].isNull()) + dataObject.messageType = std::stoi(value["MessageType"].asString()); + if(!value["InstanceId"].isNull()) + dataObject.instanceId = value["InstanceId"].asString(); + if(!value["IndependentNaming"].isNull()) + dataObject.independentNaming = value["IndependentNaming"].asString() == "true"; + data_.push_back(dataObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::vector OnsTopicListResult::getData()const +{ + return data_; +} + +std::string OnsTopicListResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsTopicStatusRequest.cc b/ons/src/model/OnsTopicStatusRequest.cc new file mode 100644 index 000000000..5a07f5e9d --- /dev/null +++ b/ons/src/model/OnsTopicStatusRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicStatusRequest; + +OnsTopicStatusRequest::OnsTopicStatusRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTopicStatus") +{} + +OnsTopicStatusRequest::~OnsTopicStatusRequest() +{} + +long OnsTopicStatusRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTopicStatusRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsTopicStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsTopicStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsTopicStatusRequest::getTopic()const +{ + return topic_; +} + +void OnsTopicStatusRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/ons/src/model/OnsTopicStatusResult.cc b/ons/src/model/OnsTopicStatusResult.cc new file mode 100644 index 000000000..9a0b66067 --- /dev/null +++ b/ons/src/model/OnsTopicStatusResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTopicStatusResult::OnsTopicStatusResult() : + ServiceResult() +{} + +OnsTopicStatusResult::OnsTopicStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTopicStatusResult::~OnsTopicStatusResult() +{} + +void OnsTopicStatusResult::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["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + if(!dataNode["LastTimeStamp"].isNull()) + data_.lastTimeStamp = std::stol(dataNode["LastTimeStamp"].asString()); + if(!dataNode["Perm"].isNull()) + data_.perm = std::stoi(dataNode["Perm"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsTopicStatusResult::Data OnsTopicStatusResult::getData()const +{ + return data_; +} + +std::string OnsTopicStatusResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsTopicSubDetailRequest.cc b/ons/src/model/OnsTopicSubDetailRequest.cc new file mode 100644 index 000000000..683bac697 --- /dev/null +++ b/ons/src/model/OnsTopicSubDetailRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicSubDetailRequest; + +OnsTopicSubDetailRequest::OnsTopicSubDetailRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTopicSubDetail") +{} + +OnsTopicSubDetailRequest::~OnsTopicSubDetailRequest() +{} + +long OnsTopicSubDetailRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTopicSubDetailRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsTopicSubDetailRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsTopicSubDetailRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsTopicSubDetailRequest::getTopic()const +{ + return topic_; +} + +void OnsTopicSubDetailRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/ons/src/model/OnsTopicSubDetailResult.cc b/ons/src/model/OnsTopicSubDetailResult.cc new file mode 100644 index 000000000..645d4abbf --- /dev/null +++ b/ons/src/model/OnsTopicSubDetailResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTopicSubDetailResult::OnsTopicSubDetailResult() : + ServiceResult() +{} + +OnsTopicSubDetailResult::OnsTopicSubDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTopicSubDetailResult::~OnsTopicSubDetailResult() +{} + +void OnsTopicSubDetailResult::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["Topic"].isNull()) + data_.topic = dataNode["Topic"].asString(); + auto allSubscriptionDataList = value["SubscriptionDataList"]["SubscriptionDataListItem"]; + for (auto value : allSubscriptionDataList) + { + Data::SubscriptionDataListItem subscriptionDataListItemObject; + if(!value["GroupId"].isNull()) + subscriptionDataListItemObject.groupId = value["GroupId"].asString(); + if(!value["SubString"].isNull()) + subscriptionDataListItemObject.subString = value["SubString"].asString(); + if(!value["MessageModel"].isNull()) + subscriptionDataListItemObject.messageModel = value["MessageModel"].asString(); + data_.subscriptionDataList.push_back(subscriptionDataListItemObject); + } + +} + +OnsTopicSubDetailResult::Data OnsTopicSubDetailResult::getData()const +{ + return data_; +} + diff --git a/ons/src/model/OnsTopicUpdateRequest.cc b/ons/src/model/OnsTopicUpdateRequest.cc new file mode 100644 index 000000000..cfcc9bd68 --- /dev/null +++ b/ons/src/model/OnsTopicUpdateRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicUpdateRequest; + +OnsTopicUpdateRequest::OnsTopicUpdateRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTopicUpdate") +{} + +OnsTopicUpdateRequest::~OnsTopicUpdateRequest() +{} + +long OnsTopicUpdateRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTopicUpdateRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsTopicUpdateRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsTopicUpdateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int OnsTopicUpdateRequest::getPerm()const +{ + return perm_; +} + +void OnsTopicUpdateRequest::setPerm(int perm) +{ + perm_ = perm; + setParameter("Perm", std::to_string(perm)); +} + +std::string OnsTopicUpdateRequest::getTopic()const +{ + return topic_; +} + +void OnsTopicUpdateRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/ons/src/model/OnsTopicUpdateResult.cc b/ons/src/model/OnsTopicUpdateResult.cc new file mode 100644 index 000000000..d81efe258 --- /dev/null +++ b/ons/src/model/OnsTopicUpdateResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTopicUpdateResult::OnsTopicUpdateResult() : + ServiceResult() +{} + +OnsTopicUpdateResult::OnsTopicUpdateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTopicUpdateResult::~OnsTopicUpdateResult() +{} + +void OnsTopicUpdateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsTopicUpdateResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsTraceGetResultRequest.cc b/ons/src/model/OnsTraceGetResultRequest.cc new file mode 100644 index 000000000..5b62904f2 --- /dev/null +++ b/ons/src/model/OnsTraceGetResultRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTraceGetResultRequest; + +OnsTraceGetResultRequest::OnsTraceGetResultRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTraceGetResult") +{} + +OnsTraceGetResultRequest::~OnsTraceGetResultRequest() +{} + +long OnsTraceGetResultRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTraceGetResultRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsTraceGetResultRequest::getQueryId()const +{ + return queryId_; +} + +void OnsTraceGetResultRequest::setQueryId(const std::string& queryId) +{ + queryId_ = queryId; + setParameter("QueryId", queryId); +} + diff --git a/ons/src/model/OnsTraceGetResultResult.cc b/ons/src/model/OnsTraceGetResultResult.cc new file mode 100644 index 000000000..0b0955993 --- /dev/null +++ b/ons/src/model/OnsTraceGetResultResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTraceGetResultResult::OnsTraceGetResultResult() : + ServiceResult() +{} + +OnsTraceGetResultResult::OnsTraceGetResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTraceGetResultResult::~OnsTraceGetResultResult() +{} + +void OnsTraceGetResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto traceDataNode = value["TraceData"]; + if(!traceDataNode["QueryId"].isNull()) + traceData_.queryId = traceDataNode["QueryId"].asString(); + if(!traceDataNode["UserId"].isNull()) + traceData_.userId = traceDataNode["UserId"].asString(); + if(!traceDataNode["Topic"].isNull()) + traceData_.topic = traceDataNode["Topic"].asString(); + if(!traceDataNode["MsgId"].isNull()) + traceData_.msgId = traceDataNode["MsgId"].asString(); + if(!traceDataNode["MsgKey"].isNull()) + traceData_.msgKey = traceDataNode["MsgKey"].asString(); + if(!traceDataNode["Status"].isNull()) + traceData_.status = traceDataNode["Status"].asString(); + if(!traceDataNode["CreateTime"].isNull()) + traceData_.createTime = std::stol(traceDataNode["CreateTime"].asString()); + if(!traceDataNode["UpdateTime"].isNull()) + traceData_.updateTime = std::stol(traceDataNode["UpdateTime"].asString()); + if(!traceDataNode["InstanceId"].isNull()) + traceData_.instanceId = traceDataNode["InstanceId"].asString(); + auto allTraceList = value["TraceList"]["TraceMapDo"]; + for (auto value : allTraceList) + { + TraceData::TraceMapDo traceMapDoObject; + if(!value["PubTime"].isNull()) + traceMapDoObject.pubTime = std::stol(value["PubTime"].asString()); + if(!value["Topic"].isNull()) + traceMapDoObject.topic = value["Topic"].asString(); + if(!value["PubGroupName"].isNull()) + traceMapDoObject.pubGroupName = value["PubGroupName"].asString(); + if(!value["MsgId"].isNull()) + traceMapDoObject.msgId = value["MsgId"].asString(); + if(!value["Tag"].isNull()) + traceMapDoObject.tag = value["Tag"].asString(); + if(!value["MsgKey"].isNull()) + traceMapDoObject.msgKey = value["MsgKey"].asString(); + if(!value["BornHost"].isNull()) + traceMapDoObject.bornHost = value["BornHost"].asString(); + if(!value["CostTime"].isNull()) + traceMapDoObject.costTime = std::stoi(value["CostTime"].asString()); + if(!value["Status"].isNull()) + traceMapDoObject.status = value["Status"].asString(); + auto allSubList = value["SubList"]["SubMapDo"]; + for (auto value : allSubList) + { + TraceData::TraceMapDo::SubMapDo subListObject; + if(!value["SubGroupName"].isNull()) + subListObject.subGroupName = value["SubGroupName"].asString(); + if(!value["SuccessCount"].isNull()) + subListObject.successCount = std::stoi(value["SuccessCount"].asString()); + if(!value["FailCount"].isNull()) + subListObject.failCount = std::stoi(value["FailCount"].asString()); + auto allClientList = value["ClientList"]["SubClientInfoDo"]; + for (auto value : allClientList) + { + TraceData::TraceMapDo::SubMapDo::SubClientInfoDo clientListObject; + if(!value["SubGroupName"].isNull()) + clientListObject.subGroupName = value["SubGroupName"].asString(); + if(!value["SubTime"].isNull()) + clientListObject.subTime = std::stol(value["SubTime"].asString()); + if(!value["ClientHost"].isNull()) + clientListObject.clientHost = value["ClientHost"].asString(); + if(!value["ReconsumeTimes"].isNull()) + clientListObject.reconsumeTimes = std::stoi(value["ReconsumeTimes"].asString()); + if(!value["CostTime"].isNull()) + clientListObject.costTime = std::stoi(value["CostTime"].asString()); + if(!value["Status"].isNull()) + clientListObject.status = value["Status"].asString(); + subListObject.clientList.push_back(clientListObject); + } + traceMapDoObject.subList.push_back(subListObject); + } + traceData_.traceList.push_back(traceMapDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsTraceGetResultResult::TraceData OnsTraceGetResultResult::getTraceData()const +{ + return traceData_; +} + +std::string OnsTraceGetResultResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsTraceQueryByMsgIdRequest.cc b/ons/src/model/OnsTraceQueryByMsgIdRequest.cc new file mode 100644 index 000000000..f4908baca --- /dev/null +++ b/ons/src/model/OnsTraceQueryByMsgIdRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgIdRequest; + +OnsTraceQueryByMsgIdRequest::OnsTraceQueryByMsgIdRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgId") +{} + +OnsTraceQueryByMsgIdRequest::~OnsTraceQueryByMsgIdRequest() +{} + +long OnsTraceQueryByMsgIdRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTraceQueryByMsgIdRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsTraceQueryByMsgIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsTraceQueryByMsgIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsTraceQueryByMsgIdRequest::getTopic()const +{ + return topic_; +} + +void OnsTraceQueryByMsgIdRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +std::string OnsTraceQueryByMsgIdRequest::getMsgId()const +{ + return msgId_; +} + +void OnsTraceQueryByMsgIdRequest::setMsgId(const std::string& msgId) +{ + msgId_ = msgId; + setParameter("MsgId", msgId); +} + +long OnsTraceQueryByMsgIdRequest::getEndTime()const +{ + return endTime_; +} + +void OnsTraceQueryByMsgIdRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long OnsTraceQueryByMsgIdRequest::getBeginTime()const +{ + return beginTime_; +} + +void OnsTraceQueryByMsgIdRequest::setBeginTime(long beginTime) +{ + beginTime_ = beginTime; + setParameter("BeginTime", std::to_string(beginTime)); +} + diff --git a/ons/src/model/OnsTraceQueryByMsgIdResult.cc b/ons/src/model/OnsTraceQueryByMsgIdResult.cc new file mode 100644 index 000000000..0952662f4 --- /dev/null +++ b/ons/src/model/OnsTraceQueryByMsgIdResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTraceQueryByMsgIdResult::OnsTraceQueryByMsgIdResult() : + ServiceResult() +{} + +OnsTraceQueryByMsgIdResult::OnsTraceQueryByMsgIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTraceQueryByMsgIdResult::~OnsTraceQueryByMsgIdResult() +{} + +void OnsTraceQueryByMsgIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + if(!value["QueryId"].isNull()) + queryId_ = value["QueryId"].asString(); + +} + +std::string OnsTraceQueryByMsgIdResult::getQueryId()const +{ + return queryId_; +} + +std::string OnsTraceQueryByMsgIdResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc b/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc new file mode 100644 index 000000000..e67b7e4e8 --- /dev/null +++ b/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgKeyRequest; + +OnsTraceQueryByMsgKeyRequest::OnsTraceQueryByMsgKeyRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgKey") +{} + +OnsTraceQueryByMsgKeyRequest::~OnsTraceQueryByMsgKeyRequest() +{} + +long OnsTraceQueryByMsgKeyRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTraceQueryByMsgKeyRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsTraceQueryByMsgKeyRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsTraceQueryByMsgKeyRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsTraceQueryByMsgKeyRequest::getTopic()const +{ + return topic_; +} + +void OnsTraceQueryByMsgKeyRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +long OnsTraceQueryByMsgKeyRequest::getEndTime()const +{ + return endTime_; +} + +void OnsTraceQueryByMsgKeyRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long OnsTraceQueryByMsgKeyRequest::getBeginTime()const +{ + return beginTime_; +} + +void OnsTraceQueryByMsgKeyRequest::setBeginTime(long beginTime) +{ + beginTime_ = beginTime; + setParameter("BeginTime", std::to_string(beginTime)); +} + +std::string OnsTraceQueryByMsgKeyRequest::getMsgKey()const +{ + return msgKey_; +} + +void OnsTraceQueryByMsgKeyRequest::setMsgKey(const std::string& msgKey) +{ + msgKey_ = msgKey; + setParameter("MsgKey", msgKey); +} + diff --git a/ons/src/model/OnsTraceQueryByMsgKeyResult.cc b/ons/src/model/OnsTraceQueryByMsgKeyResult.cc new file mode 100644 index 000000000..53b2072bb --- /dev/null +++ b/ons/src/model/OnsTraceQueryByMsgKeyResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTraceQueryByMsgKeyResult::OnsTraceQueryByMsgKeyResult() : + ServiceResult() +{} + +OnsTraceQueryByMsgKeyResult::OnsTraceQueryByMsgKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTraceQueryByMsgKeyResult::~OnsTraceQueryByMsgKeyResult() +{} + +void OnsTraceQueryByMsgKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + if(!value["QueryId"].isNull()) + queryId_ = value["QueryId"].asString(); + +} + +std::string OnsTraceQueryByMsgKeyResult::getQueryId()const +{ + return queryId_; +} + +std::string OnsTraceQueryByMsgKeyResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsTrendGroupOutputTpsRequest.cc b/ons/src/model/OnsTrendGroupOutputTpsRequest.cc new file mode 100644 index 000000000..ddc98693d --- /dev/null +++ b/ons/src/model/OnsTrendGroupOutputTpsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsTrendGroupOutputTpsRequest; + +OnsTrendGroupOutputTpsRequest::OnsTrendGroupOutputTpsRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTrendGroupOutputTps") +{} + +OnsTrendGroupOutputTpsRequest::~OnsTrendGroupOutputTpsRequest() +{} + +long OnsTrendGroupOutputTpsRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTrendGroupOutputTpsRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +long OnsTrendGroupOutputTpsRequest::getPeriod()const +{ + return period_; +} + +void OnsTrendGroupOutputTpsRequest::setPeriod(long period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string OnsTrendGroupOutputTpsRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsTrendGroupOutputTpsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsTrendGroupOutputTpsRequest::getGroupId()const +{ + return groupId_; +} + +void OnsTrendGroupOutputTpsRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string OnsTrendGroupOutputTpsRequest::getTopic()const +{ + return topic_; +} + +void OnsTrendGroupOutputTpsRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +long OnsTrendGroupOutputTpsRequest::getEndTime()const +{ + return endTime_; +} + +void OnsTrendGroupOutputTpsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long OnsTrendGroupOutputTpsRequest::getBeginTime()const +{ + return beginTime_; +} + +void OnsTrendGroupOutputTpsRequest::setBeginTime(long beginTime) +{ + beginTime_ = beginTime; + setParameter("BeginTime", std::to_string(beginTime)); +} + +int OnsTrendGroupOutputTpsRequest::getType()const +{ + return type_; +} + +void OnsTrendGroupOutputTpsRequest::setType(int type) +{ + type_ = type; + setParameter("Type", std::to_string(type)); +} + diff --git a/ons/src/model/OnsTrendGroupOutputTpsResult.cc b/ons/src/model/OnsTrendGroupOutputTpsResult.cc new file mode 100644 index 000000000..7cd96dd6f --- /dev/null +++ b/ons/src/model/OnsTrendGroupOutputTpsResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTrendGroupOutputTpsResult::OnsTrendGroupOutputTpsResult() : + ServiceResult() +{} + +OnsTrendGroupOutputTpsResult::OnsTrendGroupOutputTpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTrendGroupOutputTpsResult::~OnsTrendGroupOutputTpsResult() +{} + +void OnsTrendGroupOutputTpsResult::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["Title"].isNull()) + data_.title = dataNode["Title"].asString(); + if(!dataNode["XUnit"].isNull()) + data_.xUnit = dataNode["XUnit"].asString(); + if(!dataNode["YUnit"].isNull()) + data_.yUnit = dataNode["YUnit"].asString(); + auto allRecords = value["Records"]["StatsDataDo"]; + for (auto value : allRecords) + { + Data::StatsDataDo statsDataDoObject; + if(!value["X"].isNull()) + statsDataDoObject.x = std::stol(value["X"].asString()); + if(!value["Y"].isNull()) + statsDataDoObject.y = std::stof(value["Y"].asString()); + data_.records.push_back(statsDataDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsTrendGroupOutputTpsResult::Data OnsTrendGroupOutputTpsResult::getData()const +{ + return data_; +} + +std::string OnsTrendGroupOutputTpsResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsTrendTopicInputTpsRequest.cc b/ons/src/model/OnsTrendTopicInputTpsRequest.cc new file mode 100644 index 000000000..84cf71bfb --- /dev/null +++ b/ons/src/model/OnsTrendTopicInputTpsRequest.cc @@ -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 + +using AlibabaCloud::Ons::Model::OnsTrendTopicInputTpsRequest; + +OnsTrendTopicInputTpsRequest::OnsTrendTopicInputTpsRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsTrendTopicInputTps") +{} + +OnsTrendTopicInputTpsRequest::~OnsTrendTopicInputTpsRequest() +{} + +long OnsTrendTopicInputTpsRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsTrendTopicInputTpsRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +long OnsTrendTopicInputTpsRequest::getPeriod()const +{ + return period_; +} + +void OnsTrendTopicInputTpsRequest::setPeriod(long period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string OnsTrendTopicInputTpsRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsTrendTopicInputTpsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsTrendTopicInputTpsRequest::getTopic()const +{ + return topic_; +} + +void OnsTrendTopicInputTpsRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +long OnsTrendTopicInputTpsRequest::getEndTime()const +{ + return endTime_; +} + +void OnsTrendTopicInputTpsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long OnsTrendTopicInputTpsRequest::getBeginTime()const +{ + return beginTime_; +} + +void OnsTrendTopicInputTpsRequest::setBeginTime(long beginTime) +{ + beginTime_ = beginTime; + setParameter("BeginTime", std::to_string(beginTime)); +} + +int OnsTrendTopicInputTpsRequest::getType()const +{ + return type_; +} + +void OnsTrendTopicInputTpsRequest::setType(int type) +{ + type_ = type; + setParameter("Type", std::to_string(type)); +} + diff --git a/ons/src/model/OnsTrendTopicInputTpsResult.cc b/ons/src/model/OnsTrendTopicInputTpsResult.cc new file mode 100644 index 000000000..86d084341 --- /dev/null +++ b/ons/src/model/OnsTrendTopicInputTpsResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsTrendTopicInputTpsResult::OnsTrendTopicInputTpsResult() : + ServiceResult() +{} + +OnsTrendTopicInputTpsResult::OnsTrendTopicInputTpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsTrendTopicInputTpsResult::~OnsTrendTopicInputTpsResult() +{} + +void OnsTrendTopicInputTpsResult::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["Title"].isNull()) + data_.title = dataNode["Title"].asString(); + if(!dataNode["XUnit"].isNull()) + data_.xUnit = dataNode["XUnit"].asString(); + if(!dataNode["YUnit"].isNull()) + data_.yUnit = dataNode["YUnit"].asString(); + auto allRecords = value["Records"]["StatsDataDo"]; + for (auto value : allRecords) + { + Data::StatsDataDo statsDataDoObject; + if(!value["X"].isNull()) + statsDataDoObject.x = std::stol(value["X"].asString()); + if(!value["Y"].isNull()) + statsDataDoObject.y = std::stof(value["Y"].asString()); + data_.records.push_back(statsDataDoObject); + } + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +OnsTrendTopicInputTpsResult::Data OnsTrendTopicInputTpsResult::getData()const +{ + return data_; +} + +std::string OnsTrendTopicInputTpsResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsWarnCreateRequest.cc b/ons/src/model/OnsWarnCreateRequest.cc new file mode 100644 index 000000000..46fb941c6 --- /dev/null +++ b/ons/src/model/OnsWarnCreateRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Ons::Model::OnsWarnCreateRequest; + +OnsWarnCreateRequest::OnsWarnCreateRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsWarnCreate") +{} + +OnsWarnCreateRequest::~OnsWarnCreateRequest() +{} + +long OnsWarnCreateRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsWarnCreateRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsWarnCreateRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsWarnCreateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsWarnCreateRequest::getBlockTime()const +{ + return blockTime_; +} + +void OnsWarnCreateRequest::setBlockTime(const std::string& blockTime) +{ + blockTime_ = blockTime; + setParameter("BlockTime", blockTime); +} + +std::string OnsWarnCreateRequest::getLevel()const +{ + return level_; +} + +void OnsWarnCreateRequest::setLevel(const std::string& level) +{ + level_ = level; + setParameter("Level", level); +} + +std::string OnsWarnCreateRequest::getGroupId()const +{ + return groupId_; +} + +void OnsWarnCreateRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string OnsWarnCreateRequest::getDelayTime()const +{ + return delayTime_; +} + +void OnsWarnCreateRequest::setDelayTime(const std::string& delayTime) +{ + delayTime_ = delayTime; + setParameter("DelayTime", delayTime); +} + +std::string OnsWarnCreateRequest::getTopic()const +{ + return topic_; +} + +void OnsWarnCreateRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +std::string OnsWarnCreateRequest::getThreshold()const +{ + return threshold_; +} + +void OnsWarnCreateRequest::setThreshold(const std::string& threshold) +{ + threshold_ = threshold; + setParameter("Threshold", threshold); +} + +std::string OnsWarnCreateRequest::getAlertTime()const +{ + return alertTime_; +} + +void OnsWarnCreateRequest::setAlertTime(const std::string& alertTime) +{ + alertTime_ = alertTime; + setParameter("AlertTime", alertTime); +} + +std::string OnsWarnCreateRequest::getContacts()const +{ + return contacts_; +} + +void OnsWarnCreateRequest::setContacts(const std::string& contacts) +{ + contacts_ = contacts; + setParameter("Contacts", contacts); +} + diff --git a/ons/src/model/OnsWarnCreateResult.cc b/ons/src/model/OnsWarnCreateResult.cc new file mode 100644 index 000000000..f6bf26013 --- /dev/null +++ b/ons/src/model/OnsWarnCreateResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsWarnCreateResult::OnsWarnCreateResult() : + ServiceResult() +{} + +OnsWarnCreateResult::OnsWarnCreateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsWarnCreateResult::~OnsWarnCreateResult() +{} + +void OnsWarnCreateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsWarnCreateResult::getHelpUrl()const +{ + return helpUrl_; +} + diff --git a/ons/src/model/OnsWarnDeleteRequest.cc b/ons/src/model/OnsWarnDeleteRequest.cc new file mode 100644 index 000000000..0d3a04441 --- /dev/null +++ b/ons/src/model/OnsWarnDeleteRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ons::Model::OnsWarnDeleteRequest; + +OnsWarnDeleteRequest::OnsWarnDeleteRequest() : + RpcServiceRequest("ons", "2019-02-14", "OnsWarnDelete") +{} + +OnsWarnDeleteRequest::~OnsWarnDeleteRequest() +{} + +long OnsWarnDeleteRequest::getPreventCache()const +{ + return preventCache_; +} + +void OnsWarnDeleteRequest::setPreventCache(long preventCache) +{ + preventCache_ = preventCache; + setParameter("PreventCache", std::to_string(preventCache)); +} + +std::string OnsWarnDeleteRequest::getInstanceId()const +{ + return instanceId_; +} + +void OnsWarnDeleteRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string OnsWarnDeleteRequest::getGroupId()const +{ + return groupId_; +} + +void OnsWarnDeleteRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string OnsWarnDeleteRequest::getTopic()const +{ + return topic_; +} + +void OnsWarnDeleteRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/ons/src/model/OnsWarnDeleteResult.cc b/ons/src/model/OnsWarnDeleteResult.cc new file mode 100644 index 000000000..0be9522de --- /dev/null +++ b/ons/src/model/OnsWarnDeleteResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ons; +using namespace AlibabaCloud::Ons::Model; + +OnsWarnDeleteResult::OnsWarnDeleteResult() : + ServiceResult() +{} + +OnsWarnDeleteResult::OnsWarnDeleteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnsWarnDeleteResult::~OnsWarnDeleteResult() +{} + +void OnsWarnDeleteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HelpUrl"].isNull()) + helpUrl_ = value["HelpUrl"].asString(); + +} + +std::string OnsWarnDeleteResult::getHelpUrl()const +{ + return helpUrl_; +} +