diff --git a/CHANGELOG b/CHANGELOG index 3d03d8791..25bc210b4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-02-17 Version: 1.36.1057 +- Adjusted the call frequency limit of some APIs. + 2022-02-16 Version: 1.36.1056 - Generated 2016-04-08 for `Emr`. diff --git a/VERSION b/VERSION index 76f787a5f..e672a33cf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1056 \ No newline at end of file +1.36.1057 \ No newline at end of file diff --git a/ons/CMakeLists.txt b/ons/CMakeLists.txt index 92e16df95..3f1108d29 100644 --- a/ons/CMakeLists.txt +++ b/ons/CMakeLists.txt @@ -67,26 +67,8 @@ set(ons_public_header_model include/alibabacloud/ons/model/OnsMessagePageQueryByTopicResult.h include/alibabacloud/ons/model/OnsMessagePushRequest.h include/alibabacloud/ons/model/OnsMessagePushResult.h - include/alibabacloud/ons/model/OnsMessageSendRequest.h - include/alibabacloud/ons/model/OnsMessageSendResult.h include/alibabacloud/ons/model/OnsMessageTraceRequest.h include/alibabacloud/ons/model/OnsMessageTraceResult.h - include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h - include/alibabacloud/ons/model/OnsMqttGroupIdCreateResult.h - include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h - include/alibabacloud/ons/model/OnsMqttGroupIdDeleteResult.h - include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h - include/alibabacloud/ons/model/OnsMqttGroupIdListResult.h - include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h - include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdResult.h - include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h - include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdResult.h - include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h - include/alibabacloud/ons/model/OnsMqttQueryClientByTopicResult.h - include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h - include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineResult.h - include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h - include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendResult.h include/alibabacloud/ons/model/OnsRegionListRequest.h include/alibabacloud/ons/model/OnsRegionListResult.h include/alibabacloud/ons/model/OnsTopicCreateRequest.h @@ -170,26 +152,8 @@ set(ons_src src/model/OnsMessagePageQueryByTopicResult.cc src/model/OnsMessagePushRequest.cc src/model/OnsMessagePushResult.cc - src/model/OnsMessageSendRequest.cc - src/model/OnsMessageSendResult.cc src/model/OnsMessageTraceRequest.cc src/model/OnsMessageTraceResult.cc - src/model/OnsMqttGroupIdCreateRequest.cc - src/model/OnsMqttGroupIdCreateResult.cc - src/model/OnsMqttGroupIdDeleteRequest.cc - src/model/OnsMqttGroupIdDeleteResult.cc - src/model/OnsMqttGroupIdListRequest.cc - src/model/OnsMqttGroupIdListResult.cc - src/model/OnsMqttQueryClientByClientIdRequest.cc - src/model/OnsMqttQueryClientByClientIdResult.cc - src/model/OnsMqttQueryClientByGroupIdRequest.cc - src/model/OnsMqttQueryClientByGroupIdResult.cc - src/model/OnsMqttQueryClientByTopicRequest.cc - src/model/OnsMqttQueryClientByTopicResult.cc - src/model/OnsMqttQueryHistoryOnlineRequest.cc - src/model/OnsMqttQueryHistoryOnlineResult.cc - src/model/OnsMqttQueryMsgTransTrendRequest.cc - src/model/OnsMqttQueryMsgTransTrendResult.cc src/model/OnsRegionListRequest.cc src/model/OnsRegionListResult.cc src/model/OnsTopicCreateRequest.cc diff --git a/ons/include/alibabacloud/ons/OnsClient.h b/ons/include/alibabacloud/ons/OnsClient.h index f19d62562..c28bcade5 100644 --- a/ons/include/alibabacloud/ons/OnsClient.h +++ b/ons/include/alibabacloud/ons/OnsClient.h @@ -68,26 +68,8 @@ #include "model/OnsMessagePageQueryByTopicResult.h" #include "model/OnsMessagePushRequest.h" #include "model/OnsMessagePushResult.h" -#include "model/OnsMessageSendRequest.h" -#include "model/OnsMessageSendResult.h" #include "model/OnsMessageTraceRequest.h" #include "model/OnsMessageTraceResult.h" -#include "model/OnsMqttGroupIdCreateRequest.h" -#include "model/OnsMqttGroupIdCreateResult.h" -#include "model/OnsMqttGroupIdDeleteRequest.h" -#include "model/OnsMqttGroupIdDeleteResult.h" -#include "model/OnsMqttGroupIdListRequest.h" -#include "model/OnsMqttGroupIdListResult.h" -#include "model/OnsMqttQueryClientByClientIdRequest.h" -#include "model/OnsMqttQueryClientByClientIdResult.h" -#include "model/OnsMqttQueryClientByGroupIdRequest.h" -#include "model/OnsMqttQueryClientByGroupIdResult.h" -#include "model/OnsMqttQueryClientByTopicRequest.h" -#include "model/OnsMqttQueryClientByTopicResult.h" -#include "model/OnsMqttQueryHistoryOnlineRequest.h" -#include "model/OnsMqttQueryHistoryOnlineResult.h" -#include "model/OnsMqttQueryMsgTransTrendRequest.h" -#include "model/OnsMqttQueryMsgTransTrendResult.h" #include "model/OnsRegionListRequest.h" #include "model/OnsRegionListResult.h" #include "model/OnsTopicCreateRequest.h" @@ -200,36 +182,9 @@ namespace AlibabaCloud typedef Outcome OnsMessagePushOutcome; typedef std::future OnsMessagePushOutcomeCallable; typedef std::function&)> OnsMessagePushAsyncHandler; - typedef Outcome OnsMessageSendOutcome; - typedef std::future OnsMessageSendOutcomeCallable; - typedef std::function&)> OnsMessageSendAsyncHandler; typedef Outcome OnsMessageTraceOutcome; typedef std::future OnsMessageTraceOutcomeCallable; typedef std::function&)> OnsMessageTraceAsyncHandler; - typedef Outcome OnsMqttGroupIdCreateOutcome; - typedef std::future OnsMqttGroupIdCreateOutcomeCallable; - typedef std::function&)> OnsMqttGroupIdCreateAsyncHandler; - typedef Outcome OnsMqttGroupIdDeleteOutcome; - typedef std::future OnsMqttGroupIdDeleteOutcomeCallable; - typedef std::function&)> OnsMqttGroupIdDeleteAsyncHandler; - typedef Outcome OnsMqttGroupIdListOutcome; - typedef std::future OnsMqttGroupIdListOutcomeCallable; - typedef std::function&)> OnsMqttGroupIdListAsyncHandler; - typedef Outcome OnsMqttQueryClientByClientIdOutcome; - typedef std::future OnsMqttQueryClientByClientIdOutcomeCallable; - typedef std::function&)> OnsMqttQueryClientByClientIdAsyncHandler; - typedef Outcome OnsMqttQueryClientByGroupIdOutcome; - typedef std::future OnsMqttQueryClientByGroupIdOutcomeCallable; - typedef std::function&)> OnsMqttQueryClientByGroupIdAsyncHandler; - typedef Outcome OnsMqttQueryClientByTopicOutcome; - typedef std::future OnsMqttQueryClientByTopicOutcomeCallable; - typedef std::function&)> OnsMqttQueryClientByTopicAsyncHandler; - typedef Outcome OnsMqttQueryHistoryOnlineOutcome; - typedef std::future OnsMqttQueryHistoryOnlineOutcomeCallable; - typedef std::function&)> OnsMqttQueryHistoryOnlineAsyncHandler; - typedef Outcome OnsMqttQueryMsgTransTrendOutcome; - typedef std::future OnsMqttQueryMsgTransTrendOutcomeCallable; - typedef std::function&)> OnsMqttQueryMsgTransTrendAsyncHandler; typedef Outcome OnsRegionListOutcome; typedef std::future OnsRegionListOutcomeCallable; typedef std::function&)> OnsRegionListAsyncHandler; @@ -355,36 +310,9 @@ namespace AlibabaCloud 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; - 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; 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; - 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; - 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; - 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; - 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; - 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; - 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; - 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; - 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; 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; diff --git a/ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h deleted file mode 100644 index 580398f19..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getMessage()const; - void setMessage(const std::string& message); - 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 getKey()const; - void setKey(const std::string& key); - - private: - std::string message_; - std::string instanceId_; - std::string topic_; - std::string tag_; - 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 deleted file mode 100644 index 7bccc40b0..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMessageSendResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/OnsMqttGroupIdCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h deleted file mode 100644 index 110969fd1..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string groupId_; - std::string instanceId_; - 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 deleted file mode 100644 index b85d36bcc..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 46e8f2934..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string groupId_; - std::string instanceId_; - - }; - } - } -} -#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 deleted file mode 100644 index 2953b49cd..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 0bf87ca95..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - 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 deleted file mode 100644 index fcf580a90..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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; - bool independentNaming; - long id; - std::string topic; - int channelId; - 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 deleted file mode 100644 index db359e12f..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getClientId()const; - void setClientId(const std::string& clientId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - 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 deleted file mode 100644 index 16f47d24d..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 8106b014f..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string groupId_; - std::string instanceId_; - - }; - } - } -} -#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 deleted file mode 100644 index 0f7c2dfc5..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdResult.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 deleted file mode 100644 index 15f4bda98..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getParentTopic()const; - void setParentTopic(const std::string& parentTopic); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSubTopic()const; - void setSubTopic(const std::string& subTopic); - - private: - std::string parentTopic_; - std::string instanceId_; - 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 deleted file mode 100644 index 90e6aecd4..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicResult.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 deleted file mode 100644 index 18babac4f..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getEndTime()const; - void setEndTime(long endTime); - long getBeginTime()const; - void setBeginTime(long beginTime); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string groupId_; - long endTime_; - long beginTime_; - std::string instanceId_; - - }; - } - } -} -#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 deleted file mode 100644 index 8aeb9cafc..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index f085b5e2e..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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(); - - 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 getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getQos()const; - void setQos(int qos); - std::string getMsgType()const; - void setMsgType(const std::string& msgType); - std::string getSubTopic()const; - void setSubTopic(const std::string& subTopic); - - private: - std::string transType_; - long endTime_; - long beginTime_; - std::string tpsType_; - std::string parentTopic_; - std::string instanceId_; - int qos_; - 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 deleted file mode 100644 index c582c6281..000000000 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/OnsTopicListResult.h b/ons/include/alibabacloud/ons/model/OnsTopicListResult.h index adeda8fc8..d5b161b70 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicListResult.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicListResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string owner; int relation; std::string instanceId; + int serviceStatus; long createTime; std::string relationName; bool independentNaming; diff --git a/ons/src/OnsClient.cc b/ons/src/OnsClient.cc index 16567a848..8f857c052 100644 --- a/ons/src/OnsClient.cc +++ b/ons/src/OnsClient.cc @@ -879,42 +879,6 @@ OnsClient::OnsMessagePushOutcomeCallable OnsClient::onsMessagePushCallable(const 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::OnsMessageTraceOutcome OnsClient::onsMessageTrace(const OnsMessageTraceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,294 +915,6 @@ OnsClient::OnsMessageTraceOutcomeCallable OnsClient::onsMessageTraceCallable(con 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::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::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::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::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::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::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::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::OnsRegionListOutcome OnsClient::onsRegionList(const OnsRegionListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ons/src/model/OnsMessageSendRequest.cc b/ons/src/model/OnsMessageSendRequest.cc deleted file mode 100644 index e63df308c..000000000 --- a/ons/src/model/OnsMessageSendRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMessageSendRequest; - -OnsMessageSendRequest::OnsMessageSendRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMessageSend") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMessageSendRequest::~OnsMessageSendRequest() -{} - -std::string OnsMessageSendRequest::getMessage()const -{ - return message_; -} - -void OnsMessageSendRequest::setMessage(const std::string& message) -{ - message_ = message; - setParameter("Message", message); -} - -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::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 deleted file mode 100644 index 949afa00e..000000000 --- a/ons/src/model/OnsMessageSendResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["HelpUrl"].isNull()) - helpUrl_ = value["HelpUrl"].asString(); - -} - -std::string OnsMessageSendResult::getData()const -{ - return data_; -} - -std::string OnsMessageSendResult::getHelpUrl()const -{ - return helpUrl_; -} - diff --git a/ons/src/model/OnsMqttGroupIdCreateRequest.cc b/ons/src/model/OnsMqttGroupIdCreateRequest.cc deleted file mode 100644 index b67d682b0..000000000 --- a/ons/src/model/OnsMqttGroupIdCreateRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMqttGroupIdCreateRequest; - -OnsMqttGroupIdCreateRequest::OnsMqttGroupIdCreateRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMqttGroupIdCreate") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMqttGroupIdCreateRequest::~OnsMqttGroupIdCreateRequest() -{} - -std::string OnsMqttGroupIdCreateRequest::getGroupId()const -{ - return groupId_; -} - -void OnsMqttGroupIdCreateRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); -} - -std::string OnsMqttGroupIdCreateRequest::getInstanceId()const -{ - return instanceId_; -} - -void OnsMqttGroupIdCreateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -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 deleted file mode 100644 index 113cfec65..000000000 --- a/ons/src/model/OnsMqttGroupIdCreateResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 deleted file mode 100644 index 90fe899d7..000000000 --- a/ons/src/model/OnsMqttGroupIdDeleteRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMqttGroupIdDeleteRequest; - -OnsMqttGroupIdDeleteRequest::OnsMqttGroupIdDeleteRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMqttGroupIdDelete") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMqttGroupIdDeleteRequest::~OnsMqttGroupIdDeleteRequest() -{} - -std::string OnsMqttGroupIdDeleteRequest::getGroupId()const -{ - return groupId_; -} - -void OnsMqttGroupIdDeleteRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); -} - -std::string OnsMqttGroupIdDeleteRequest::getInstanceId()const -{ - return instanceId_; -} - -void OnsMqttGroupIdDeleteRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ons/src/model/OnsMqttGroupIdDeleteResult.cc b/ons/src/model/OnsMqttGroupIdDeleteResult.cc deleted file mode 100644 index d2af389ab..000000000 --- a/ons/src/model/OnsMqttGroupIdDeleteResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 deleted file mode 100644 index b6295cca9..000000000 --- a/ons/src/model/OnsMqttGroupIdListRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMqttGroupIdListRequest; - -OnsMqttGroupIdListRequest::OnsMqttGroupIdListRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMqttGroupIdList") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMqttGroupIdListRequest::~OnsMqttGroupIdListRequest() -{} - -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 deleted file mode 100644 index 23714b122..000000000 --- a/ons/src/model/OnsMqttGroupIdListResult.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 allDataNode = value["Data"]["MqttGroupIdDo"]; - for (auto valueDataMqttGroupIdDo : allDataNode) - { - MqttGroupIdDo dataObject; - if(!valueDataMqttGroupIdDo["Status"].isNull()) - dataObject.status = std::stoi(valueDataMqttGroupIdDo["Status"].asString()); - if(!valueDataMqttGroupIdDo["UpdateTime"].isNull()) - dataObject.updateTime = std::stol(valueDataMqttGroupIdDo["UpdateTime"].asString()); - if(!valueDataMqttGroupIdDo["Owner"].isNull()) - dataObject.owner = valueDataMqttGroupIdDo["Owner"].asString(); - if(!valueDataMqttGroupIdDo["IndependentNaming"].isNull()) - dataObject.independentNaming = valueDataMqttGroupIdDo["IndependentNaming"].asString() == "true"; - if(!valueDataMqttGroupIdDo["GroupId"].isNull()) - dataObject.groupId = valueDataMqttGroupIdDo["GroupId"].asString(); - if(!valueDataMqttGroupIdDo["CreateTime"].isNull()) - dataObject.createTime = std::stol(valueDataMqttGroupIdDo["CreateTime"].asString()); - if(!valueDataMqttGroupIdDo["Topic"].isNull()) - dataObject.topic = valueDataMqttGroupIdDo["Topic"].asString(); - if(!valueDataMqttGroupIdDo["ChannelId"].isNull()) - dataObject.channelId = std::stoi(valueDataMqttGroupIdDo["ChannelId"].asString()); - if(!valueDataMqttGroupIdDo["InstanceId"].isNull()) - dataObject.instanceId = valueDataMqttGroupIdDo["InstanceId"].asString(); - if(!valueDataMqttGroupIdDo["Id"].isNull()) - dataObject.id = std::stol(valueDataMqttGroupIdDo["Id"].asString()); - 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 deleted file mode 100644 index f650e3590..000000000 --- a/ons/src/model/OnsMqttQueryClientByClientIdRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMqttQueryClientByClientIdRequest; - -OnsMqttQueryClientByClientIdRequest::OnsMqttQueryClientByClientIdRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMqttQueryClientByClientId") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMqttQueryClientByClientIdRequest::~OnsMqttQueryClientByClientIdRequest() -{} - -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 deleted file mode 100644 index adc7ea7b4..000000000 --- a/ons/src/model/OnsMqttQueryClientByClientIdResult.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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["LastTouch"].isNull()) - mqttClientInfoDo_.lastTouch = std::stol(mqttClientInfoDoNode["LastTouch"].asString()); - if(!mqttClientInfoDoNode["SocketChannel"].isNull()) - mqttClientInfoDo_.socketChannel = mqttClientInfoDoNode["SocketChannel"].asString(); - if(!mqttClientInfoDoNode["ClientId"].isNull()) - mqttClientInfoDo_.clientId = mqttClientInfoDoNode["ClientId"].asString(); - auto allSubScriptonDataNode = mqttClientInfoDoNode["SubScriptonData"]["SubscriptionDo"]; - for (auto mqttClientInfoDoNodeSubScriptonDataSubscriptionDo : allSubScriptonDataNode) - { - MqttClientInfoDo::SubscriptionDo subscriptionDoObject; - if(!mqttClientInfoDoNodeSubScriptonDataSubscriptionDo["SubTopic"].isNull()) - subscriptionDoObject.subTopic = mqttClientInfoDoNodeSubScriptonDataSubscriptionDo["SubTopic"].asString(); - if(!mqttClientInfoDoNodeSubScriptonDataSubscriptionDo["ParentTopic"].isNull()) - subscriptionDoObject.parentTopic = mqttClientInfoDoNodeSubScriptonDataSubscriptionDo["ParentTopic"].asString(); - if(!mqttClientInfoDoNodeSubScriptonDataSubscriptionDo["Qos"].isNull()) - subscriptionDoObject.qos = std::stoi(mqttClientInfoDoNodeSubScriptonDataSubscriptionDo["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 deleted file mode 100644 index 431148afc..000000000 --- a/ons/src/model/OnsMqttQueryClientByGroupIdRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMqttQueryClientByGroupIdRequest; - -OnsMqttQueryClientByGroupIdRequest::OnsMqttQueryClientByGroupIdRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMqttQueryClientByGroupId") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMqttQueryClientByGroupIdRequest::~OnsMqttQueryClientByGroupIdRequest() -{} - -std::string OnsMqttQueryClientByGroupIdRequest::getGroupId()const -{ - return groupId_; -} - -void OnsMqttQueryClientByGroupIdRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); -} - -std::string OnsMqttQueryClientByGroupIdRequest::getInstanceId()const -{ - return instanceId_; -} - -void OnsMqttQueryClientByGroupIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ons/src/model/OnsMqttQueryClientByGroupIdResult.cc b/ons/src/model/OnsMqttQueryClientByGroupIdResult.cc deleted file mode 100644 index 3840fd43e..000000000 --- a/ons/src/model/OnsMqttQueryClientByGroupIdResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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["PersistCount"].isNull()) - mqttClientSetDo_.persistCount = std::stol(mqttClientSetDoNode["PersistCount"].asString()); - if(!mqttClientSetDoNode["OnlineCount"].isNull()) - mqttClientSetDo_.onlineCount = std::stol(mqttClientSetDoNode["OnlineCount"].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 deleted file mode 100644 index 52800484c..000000000 --- a/ons/src/model/OnsMqttQueryClientByTopicRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMqttQueryClientByTopicRequest; - -OnsMqttQueryClientByTopicRequest::OnsMqttQueryClientByTopicRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMqttQueryClientByTopic") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMqttQueryClientByTopicRequest::~OnsMqttQueryClientByTopicRequest() -{} - -std::string OnsMqttQueryClientByTopicRequest::getParentTopic()const -{ - return parentTopic_; -} - -void OnsMqttQueryClientByTopicRequest::setParentTopic(const std::string& parentTopic) -{ - parentTopic_ = parentTopic; - setParameter("ParentTopic", parentTopic); -} - -std::string OnsMqttQueryClientByTopicRequest::getInstanceId()const -{ - return instanceId_; -} - -void OnsMqttQueryClientByTopicRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -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 deleted file mode 100644 index d48894409..000000000 --- a/ons/src/model/OnsMqttQueryClientByTopicResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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["PersistCount"].isNull()) - mqttClientSetDo_.persistCount = std::stol(mqttClientSetDoNode["PersistCount"].asString()); - if(!mqttClientSetDoNode["OnlineCount"].isNull()) - mqttClientSetDo_.onlineCount = std::stol(mqttClientSetDoNode["OnlineCount"].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 deleted file mode 100644 index e4ec1acd3..000000000 --- a/ons/src/model/OnsMqttQueryHistoryOnlineRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMqttQueryHistoryOnlineRequest; - -OnsMqttQueryHistoryOnlineRequest::OnsMqttQueryHistoryOnlineRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMqttQueryHistoryOnline") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMqttQueryHistoryOnlineRequest::~OnsMqttQueryHistoryOnlineRequest() -{} - -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)); -} - -std::string OnsMqttQueryHistoryOnlineRequest::getInstanceId()const -{ - return instanceId_; -} - -void OnsMqttQueryHistoryOnlineRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ons/src/model/OnsMqttQueryHistoryOnlineResult.cc b/ons/src/model/OnsMqttQueryHistoryOnlineResult.cc deleted file mode 100644 index 8cb34ce2f..000000000 --- a/ons/src/model/OnsMqttQueryHistoryOnlineResult.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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["XUnit"].isNull()) - data_.xUnit = dataNode["XUnit"].asString(); - if(!dataNode["YUnit"].isNull()) - data_.yUnit = dataNode["YUnit"].asString(); - if(!dataNode["Title"].isNull()) - data_.title = dataNode["Title"].asString(); - auto allRecordsNode = dataNode["Records"]["StatsDataDo"]; - for (auto dataNodeRecordsStatsDataDo : allRecordsNode) - { - Data::StatsDataDo statsDataDoObject; - if(!dataNodeRecordsStatsDataDo["Y"].isNull()) - statsDataDoObject.y = std::stof(dataNodeRecordsStatsDataDo["Y"].asString()); - if(!dataNodeRecordsStatsDataDo["X"].isNull()) - statsDataDoObject.x = std::stol(dataNodeRecordsStatsDataDo["X"].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 deleted file mode 100644 index 4d18190a3..000000000 --- a/ons/src/model/OnsMqttQueryMsgTransTrendRequest.cc +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMqttQueryMsgTransTrendRequest; - -OnsMqttQueryMsgTransTrendRequest::OnsMqttQueryMsgTransTrendRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMqttQueryMsgTransTrend") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMqttQueryMsgTransTrendRequest::~OnsMqttQueryMsgTransTrendRequest() -{} - -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::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::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 deleted file mode 100644 index 3b5a9df9a..000000000 --- a/ons/src/model/OnsMqttQueryMsgTransTrendResult.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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["XUnit"].isNull()) - data_.xUnit = dataNode["XUnit"].asString(); - if(!dataNode["YUnit"].isNull()) - data_.yUnit = dataNode["YUnit"].asString(); - if(!dataNode["Title"].isNull()) - data_.title = dataNode["Title"].asString(); - auto allRecordsNode = dataNode["Records"]["StatsDataDo"]; - for (auto dataNodeRecordsStatsDataDo : allRecordsNode) - { - Data::StatsDataDo statsDataDoObject; - if(!dataNodeRecordsStatsDataDo["Y"].isNull()) - statsDataDoObject.y = std::stof(dataNodeRecordsStatsDataDo["Y"].asString()); - if(!dataNodeRecordsStatsDataDo["X"].isNull()) - statsDataDoObject.x = std::stol(dataNodeRecordsStatsDataDo["X"].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/OnsTopicListResult.cc b/ons/src/model/OnsTopicListResult.cc index 67c5d96aa..fffe2e602 100644 --- a/ons/src/model/OnsTopicListResult.cc +++ b/ons/src/model/OnsTopicListResult.cc @@ -61,6 +61,8 @@ void OnsTopicListResult::parse(const std::string &payload) dataObject.topic = valueDataPublishInfoDo["Topic"].asString(); if(!valueDataPublishInfoDo["InstanceId"].isNull()) dataObject.instanceId = valueDataPublishInfoDo["InstanceId"].asString(); + if(!valueDataPublishInfoDo["ServiceStatus"].isNull()) + dataObject.serviceStatus = std::stoi(valueDataPublishInfoDo["ServiceStatus"].asString()); auto allTagsNode = valueDataPublishInfoDo["Tags"]["Tag"]; for (auto valueDataPublishInfoDoTagsTag : allTagsNode) {