Переглянути джерело

Add spInstanceId and spInstanceType for api OnsInstanceBaseInfo.

sdk-team 4 роки тому
батько
коміт
949e7960dc
94 змінених файлів з 2842 додано та 4003 видалено
  1. 1 1
      VERSION
  2. 0 8
      ons/CMakeLists.txt
  3. 0 16
      ons/include/alibabacloud/ons/OnsClient.h
  4. 47 55
      ons/include/alibabacloud/ons/model/ListTagResourcesRequest.h
  5. 37 43
      ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h
  6. 34 40
      ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h
  7. 43 49
      ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h
  8. 40 46
      ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h
  9. 37 43
      ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h
  10. 37 43
      ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h
  11. 49 55
      ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h
  12. 37 43
      ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h
  13. 37 43
      ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h
  14. 40 46
      ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h
  15. 34 40
      ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h
  16. 47 52
      ons/include/alibabacloud/ons/model/OnsGroupListRequest.h
  17. 34 40
      ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h
  18. 31 37
      ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h
  19. 7 4
      ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h
  20. 34 40
      ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h
  21. 31 37
      ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h
  22. 38 43
      ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h
  23. 37 43
      ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h
  24. 37 43
      ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h
  25. 37 43
      ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h
  26. 49 55
      ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h
  27. 43 49
      ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h
  28. 37 43
      ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h
  29. 28 34
      ons/include/alibabacloud/ons/model/OnsRegionListRequest.h
  30. 1 1
      ons/include/alibabacloud/ons/model/OnsRegionListResult.h
  31. 40 46
      ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h
  32. 34 40
      ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h
  33. 44 49
      ons/include/alibabacloud/ons/model/OnsTopicListRequest.h
  34. 34 40
      ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h
  35. 34 40
      ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h
  36. 37 43
      ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h
  37. 31 37
      ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h
  38. 43 49
      ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h
  39. 43 49
      ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h
  40. 49 55
      ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h
  41. 46 52
      ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h
  42. 0 72
      ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h
  43. 0 51
      ons/include/alibabacloud/ons/model/OnsWarnCreateResult.h
  44. 0 54
      ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h
  45. 0 51
      ons/include/alibabacloud/ons/model/OnsWarnDeleteResult.h
  46. 28 34
      ons/include/alibabacloud/ons/model/OpenOnsServiceRequest.h
  47. 44 52
      ons/include/alibabacloud/ons/model/TagResourcesRequest.h
  48. 43 49
      ons/include/alibabacloud/ons/model/UntagResourcesRequest.h
  49. 0 72
      ons/src/OnsClient.cc
  50. 45 60
      ons/src/model/ListTagResourcesRequest.cc
  51. 31 39
      ons/src/model/OnsConsumerAccumulateRequest.cc
  52. 26 32
      ons/src/model/OnsConsumerGetConnectionRequest.cc
  53. 41 53
      ons/src/model/OnsConsumerResetOffsetRequest.cc
  54. 36 46
      ons/src/model/OnsConsumerStatusRequest.cc
  55. 31 39
      ons/src/model/OnsConsumerTimeSpanRequest.cc
  56. 31 39
      ons/src/model/OnsDLQMessageGetByIdRequest.cc
  57. 51 67
      ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc
  58. 31 39
      ons/src/model/OnsDLQMessageResendByIdRequest.cc
  59. 31 39
      ons/src/model/OnsGroupConsumerUpdateRequest.cc
  60. 36 46
      ons/src/model/OnsGroupCreateRequest.cc
  61. 26 32
      ons/src/model/OnsGroupDeleteRequest.cc
  62. 50 51
      ons/src/model/OnsGroupListRequest.cc
  63. 26 32
      ons/src/model/OnsGroupSubDetailRequest.cc
  64. 21 25
      ons/src/model/OnsInstanceBaseInfoRequest.cc
  65. 8 2
      ons/src/model/OnsInstanceBaseInfoResult.cc
  66. 26 32
      ons/src/model/OnsInstanceCreateRequest.cc
  67. 21 25
      ons/src/model/OnsInstanceDeleteRequest.cc
  68. 35 30
      ons/src/model/OnsInstanceInServiceListRequest.cc
  69. 31 39
      ons/src/model/OnsInstanceUpdateRequest.cc
  70. 31 39
      ons/src/model/OnsMessageGetByKeyRequest.cc
  71. 31 39
      ons/src/model/OnsMessageGetByMsgIdRequest.cc
  72. 51 67
      ons/src/model/OnsMessagePageQueryByTopicRequest.cc
  73. 41 53
      ons/src/model/OnsMessagePushRequest.cc
  74. 31 39
      ons/src/model/OnsMessageTraceRequest.cc
  75. 16 18
      ons/src/model/OnsRegionListRequest.cc
  76. 8 8
      ons/src/model/OnsRegionListResult.cc
  77. 36 46
      ons/src/model/OnsTopicCreateRequest.cc
  78. 26 32
      ons/src/model/OnsTopicDeleteRequest.cc
  79. 45 44
      ons/src/model/OnsTopicListRequest.cc
  80. 26 32
      ons/src/model/OnsTopicStatusRequest.cc
  81. 26 32
      ons/src/model/OnsTopicSubDetailRequest.cc
  82. 31 39
      ons/src/model/OnsTopicUpdateRequest.cc
  83. 21 25
      ons/src/model/OnsTraceGetResultRequest.cc
  84. 41 53
      ons/src/model/OnsTraceQueryByMsgIdRequest.cc
  85. 41 53
      ons/src/model/OnsTraceQueryByMsgKeyRequest.cc
  86. 51 67
      ons/src/model/OnsTrendGroupOutputTpsRequest.cc
  87. 46 60
      ons/src/model/OnsTrendTopicInputTpsRequest.cc
  88. 0 128
      ons/src/model/OnsWarnCreateRequest.cc
  89. 0 51
      ons/src/model/OnsWarnCreateResult.cc
  90. 0 62
      ons/src/model/OnsWarnDeleteRequest.cc
  91. 0 51
      ons/src/model/OnsWarnDeleteResult.cc
  92. 16 18
      ons/src/model/OpenOnsServiceRequest.cc
  93. 40 53
      ons/src/model/TagResourcesRequest.cc
  94. 39 57
      ons/src/model/UntagResourcesRequest.cc

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1256
+1.36.1257

+ 0 - 8
ons/CMakeLists.txt

@@ -93,10 +93,6 @@ set(ons_public_header_model
 	include/alibabacloud/ons/model/OnsTrendGroupOutputTpsResult.h
 	include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h
 	include/alibabacloud/ons/model/OnsTrendTopicInputTpsResult.h
-	include/alibabacloud/ons/model/OnsWarnCreateRequest.h
-	include/alibabacloud/ons/model/OnsWarnCreateResult.h
-	include/alibabacloud/ons/model/OnsWarnDeleteRequest.h
-	include/alibabacloud/ons/model/OnsWarnDeleteResult.h
 	include/alibabacloud/ons/model/OpenOnsServiceRequest.h
 	include/alibabacloud/ons/model/OpenOnsServiceResult.h
 	include/alibabacloud/ons/model/TagResourcesRequest.h
@@ -178,10 +174,6 @@ set(ons_src
 	src/model/OnsTrendGroupOutputTpsResult.cc
 	src/model/OnsTrendTopicInputTpsRequest.cc
 	src/model/OnsTrendTopicInputTpsResult.cc
-	src/model/OnsWarnCreateRequest.cc
-	src/model/OnsWarnCreateResult.cc
-	src/model/OnsWarnDeleteRequest.cc
-	src/model/OnsWarnDeleteResult.cc
 	src/model/OpenOnsServiceRequest.cc
 	src/model/OpenOnsServiceResult.cc
 	src/model/TagResourcesRequest.cc

+ 0 - 16
ons/include/alibabacloud/ons/OnsClient.h

@@ -94,10 +94,6 @@
 #include "model/OnsTrendGroupOutputTpsResult.h"
 #include "model/OnsTrendTopicInputTpsRequest.h"
 #include "model/OnsTrendTopicInputTpsResult.h"
-#include "model/OnsWarnCreateRequest.h"
-#include "model/OnsWarnCreateResult.h"
-#include "model/OnsWarnDeleteRequest.h"
-#include "model/OnsWarnDeleteResult.h"
 #include "model/OpenOnsServiceRequest.h"
 #include "model/OpenOnsServiceResult.h"
 #include "model/TagResourcesRequest.h"
@@ -221,12 +217,6 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::OnsTrendTopicInputTpsResult> OnsTrendTopicInputTpsOutcome;
 			typedef std::future<OnsTrendTopicInputTpsOutcome> OnsTrendTopicInputTpsOutcomeCallable;
 			typedef std::function<void(const OnsClient*, const Model::OnsTrendTopicInputTpsRequest&, const OnsTrendTopicInputTpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OnsTrendTopicInputTpsAsyncHandler;
-			typedef Outcome<Error, Model::OnsWarnCreateResult> OnsWarnCreateOutcome;
-			typedef std::future<OnsWarnCreateOutcome> OnsWarnCreateOutcomeCallable;
-			typedef std::function<void(const OnsClient*, const Model::OnsWarnCreateRequest&, const OnsWarnCreateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OnsWarnCreateAsyncHandler;
-			typedef Outcome<Error, Model::OnsWarnDeleteResult> OnsWarnDeleteOutcome;
-			typedef std::future<OnsWarnDeleteOutcome> OnsWarnDeleteOutcomeCallable;
-			typedef std::function<void(const OnsClient*, const Model::OnsWarnDeleteRequest&, const OnsWarnDeleteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OnsWarnDeleteAsyncHandler;
 			typedef Outcome<Error, Model::OpenOnsServiceResult> OpenOnsServiceOutcome;
 			typedef std::future<OpenOnsServiceOutcome> OpenOnsServiceOutcomeCallable;
 			typedef std::function<void(const OnsClient*, const Model::OpenOnsServiceRequest&, const OpenOnsServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenOnsServiceAsyncHandler;
@@ -349,12 +339,6 @@ namespace AlibabaCloud
 			OnsTrendTopicInputTpsOutcome onsTrendTopicInputTps(const Model::OnsTrendTopicInputTpsRequest &request)const;
 			void onsTrendTopicInputTpsAsync(const Model::OnsTrendTopicInputTpsRequest& request, const OnsTrendTopicInputTpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			OnsTrendTopicInputTpsOutcomeCallable onsTrendTopicInputTpsCallable(const Model::OnsTrendTopicInputTpsRequest& request) const;
-			OnsWarnCreateOutcome onsWarnCreate(const Model::OnsWarnCreateRequest &request)const;
-			void onsWarnCreateAsync(const Model::OnsWarnCreateRequest& request, const OnsWarnCreateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
-			OnsWarnCreateOutcomeCallable onsWarnCreateCallable(const Model::OnsWarnCreateRequest& request) const;
-			OnsWarnDeleteOutcome onsWarnDelete(const Model::OnsWarnDeleteRequest &request)const;
-			void onsWarnDeleteAsync(const Model::OnsWarnDeleteRequest& request, const OnsWarnDeleteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
-			OnsWarnDeleteOutcomeCallable onsWarnDeleteCallable(const Model::OnsWarnDeleteRequest& request) const;
 			OpenOnsServiceOutcome openOnsService(const Model::OpenOnsServiceRequest &request)const;
 			void openOnsServiceAsync(const Model::OpenOnsServiceRequest& request, const OpenOnsServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			OpenOnsServiceOutcomeCallable openOnsServiceCallable(const Model::OpenOnsServiceRequest& request) const;

+ 47 - 55
ons/include/alibabacloud/ons/model/ListTagResourcesRequest.h

@@ -1,66 +1,58 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT ListTagResourcesRequest : public RpcServiceRequest
-			{
-			public:
-				struct Tag
-				{
-					std::string value;
-					std::string key;
-				};
-
-			public:
-				ListTagResourcesRequest();
-				~ListTagResourcesRequest();
-
-				std::vector<std::string> getResourceId()const;
-				void setResourceId(const std::vector<std::string>& resourceId);
-				std::string getResourceType()const;
-				void setResourceType(const std::string& resourceType);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getNextToken()const;
-				void setNextToken(const std::string& nextToken);
-				std::vector<Tag> getTag()const;
-				void setTag(const std::vector<Tag>& tag);
-
-            private:
-				std::vector<std::string> resourceId_;
-				std::string resourceType_;
-				std::string instanceId_;
-				std::string nextToken_;
-				std::vector<Tag> tag_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT ListTagResourcesRequest : public RpcServiceRequest {
+public:
+	struct Tag {
+		std::string value;
+		std::string key;
+	};
+	ListTagResourcesRequest();
+	~ListTagResourcesRequest();
+	std::vector<std::string> getResourceId() const;
+	void setResourceId(const std::vector<std::string> &resourceId);
+	std::string getResourceType() const;
+	void setResourceType(const std::string &resourceType);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::string getNextToken() const;
+	void setNextToken(const std::string &nextToken);
+	std::vector<Tag> getTag() const;
+	void setTag(const std::vector<Tag> &tag);
+
+private:
+	std::vector<std::string> resourceId_;
+	std::string resourceType_;
+	std::string instanceId_;
+	std::string nextToken_;
+	std::vector<Tag> tag_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_

+ 37 - 43
ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h

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

+ 34 - 40
ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h

@@ -1,51 +1,45 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsConsumerGetConnectionRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsConsumerGetConnectionRequest();
-				~OnsConsumerGetConnectionRequest();
-
-				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_ONSCONSUMERGETCONNECTIONREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsConsumerGetConnectionRequest : public RpcServiceRequest {
+public:
+	OnsConsumerGetConnectionRequest();
+	~OnsConsumerGetConnectionRequest();
+	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_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_

+ 43 - 49
ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h

@@ -1,60 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsConsumerResetOffsetRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsConsumerResetOffsetRequest();
-				~OnsConsumerResetOffsetRequest();
-
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				long getResetTimestamp()const;
-				void setResetTimestamp(long resetTimestamp);
-				int getType()const;
-				void setType(int type);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getTopic()const;
-				void setTopic(const std::string& topic);
-
-            private:
-				std::string groupId_;
-				long resetTimestamp_;
-				int type_;
-				std::string instanceId_;
-				std::string topic_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsConsumerResetOffsetRequest : public RpcServiceRequest {
+public:
+	OnsConsumerResetOffsetRequest();
+	~OnsConsumerResetOffsetRequest();
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	long getResetTimestamp() const;
+	void setResetTimestamp(long resetTimestamp);
+	int getType() const;
+	void setType(int type);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::string getTopic() const;
+	void setTopic(const std::string &topic);
+
+private:
+	std::string groupId_;
+	long resetTimestamp_;
+	int type_;
+	std::string instanceId_;
+	std::string topic_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_

+ 40 - 46
ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h

@@ -1,57 +1,51 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsConsumerStatusRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsConsumerStatusRequest();
-				~OnsConsumerStatusRequest();
-
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				bool getNeedJstack()const;
-				void setNeedJstack(bool needJstack);
-				bool getDetail()const;
-				void setDetail(bool detail);
-
-            private:
-				std::string groupId_;
-				std::string instanceId_;
-				bool needJstack_;
-				bool detail_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsConsumerStatusRequest : public RpcServiceRequest {
+public:
+	OnsConsumerStatusRequest();
+	~OnsConsumerStatusRequest();
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	bool getNeedJstack() const;
+	void setNeedJstack(bool needJstack);
+	bool getDetail() const;
+	void setDetail(bool detail);
+
+private:
+	std::string groupId_;
+	std::string instanceId_;
+	bool needJstack_;
+	bool detail_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_

+ 37 - 43
ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h

@@ -1,54 +1,48 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsConsumerTimeSpanRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsConsumerTimeSpanRequest();
-				~OnsConsumerTimeSpanRequest();
-
-				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_ONSCONSUMERTIMESPANREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsConsumerTimeSpanRequest : public RpcServiceRequest {
+public:
+	OnsConsumerTimeSpanRequest();
+	~OnsConsumerTimeSpanRequest();
+	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_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_

+ 37 - 43
ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h

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

+ 49 - 55
ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h

@@ -1,66 +1,60 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsDLQMessagePageQueryByGroupIdRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsDLQMessagePageQueryByGroupIdRequest();
-				~OnsDLQMessagePageQueryByGroupIdRequest();
-
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				long getEndTime()const;
-				void setEndTime(long endTime);
-				long getBeginTime()const;
-				void setBeginTime(long beginTime);
-				int getCurrentPage()const;
-				void setCurrentPage(int currentPage);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				int getPageSize()const;
-				void setPageSize(int pageSize);
-				std::string getTaskId()const;
-				void setTaskId(const std::string& taskId);
-
-            private:
-				std::string groupId_;
-				long endTime_;
-				long beginTime_;
-				int currentPage_;
-				std::string instanceId_;
-				int pageSize_;
-				std::string taskId_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsDLQMessagePageQueryByGroupIdRequest : public RpcServiceRequest {
+public:
+	OnsDLQMessagePageQueryByGroupIdRequest();
+	~OnsDLQMessagePageQueryByGroupIdRequest();
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	long getEndTime() const;
+	void setEndTime(long endTime);
+	long getBeginTime() const;
+	void setBeginTime(long beginTime);
+	int getCurrentPage() const;
+	void setCurrentPage(int currentPage);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	int getPageSize() const;
+	void setPageSize(int pageSize);
+	std::string getTaskId() const;
+	void setTaskId(const std::string &taskId);
+
+private:
+	std::string groupId_;
+	long endTime_;
+	long beginTime_;
+	int currentPage_;
+	std::string instanceId_;
+	int pageSize_;
+	std::string taskId_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_

+ 37 - 43
ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h

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

+ 37 - 43
ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h

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

+ 40 - 46
ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h

@@ -1,57 +1,51 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsGroupCreateRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsGroupCreateRequest();
-				~OnsGroupCreateRequest();
-
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string getRemark()const;
-				void setRemark(const std::string& remark);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getGroupType()const;
-				void setGroupType(const std::string& groupType);
-
-            private:
-				std::string groupId_;
-				std::string remark_;
-				std::string instanceId_;
-				std::string groupType_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsGroupCreateRequest : public RpcServiceRequest {
+public:
+	OnsGroupCreateRequest();
+	~OnsGroupCreateRequest();
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string getRemark() const;
+	void setRemark(const std::string &remark);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::string getGroupType() const;
+	void setGroupType(const std::string &groupType);
+
+private:
+	std::string groupId_;
+	std::string remark_;
+	std::string instanceId_;
+	std::string groupType_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_

+ 34 - 40
ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h

@@ -1,51 +1,45 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsGroupDeleteRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsGroupDeleteRequest();
-				~OnsGroupDeleteRequest();
-
-				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_ONSGROUPDELETEREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsGroupDeleteRequest : public RpcServiceRequest {
+public:
+	OnsGroupDeleteRequest();
+	~OnsGroupDeleteRequest();
+	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_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_

+ 47 - 52
ons/include/alibabacloud/ons/model/OnsGroupListRequest.h

@@ -1,63 +1,58 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsGroupListRequest : public RpcServiceRequest
-			{
-			public:
-				struct Tag
-				{
-					std::string value;
-					std::string key;
-				};
-
-			public:
-				OnsGroupListRequest();
-				~OnsGroupListRequest();
-
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getGroupType()const;
-				void setGroupType(const std::string& groupType);
-				std::vector<Tag> getTag()const;
-				void setTag(const std::vector<Tag>& tag);
-
-            private:
-				std::string groupId_;
-				std::string instanceId_;
-				std::string groupType_;
-				std::vector<Tag> tag_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsGroupListRequest : public RpcServiceRequest {
+public:
+	struct Tag {
+		std::string value;
+		std::string key;
+	};
+	OnsGroupListRequest();
+	~OnsGroupListRequest();
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string getUserId() const;
+	void setUserId(const std::string &userId);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::string getGroupType() const;
+	void setGroupType(const std::string &groupType);
+	std::vector<Tag> getTag() const;
+	void setTag(const std::vector<Tag> &tag);
+
+private:
+	std::string groupId_;
+	std::string userId_;
+	std::string instanceId_;
+	std::string groupType_;
+	std::vector<Tag> tag_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_

+ 34 - 40
ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h

@@ -1,51 +1,45 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsGroupSubDetailRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsGroupSubDetailRequest();
-				~OnsGroupSubDetailRequest();
-
-				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_ONSGROUPSUBDETAILREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsGroupSubDetailRequest : public RpcServiceRequest {
+public:
+	OnsGroupSubDetailRequest();
+	~OnsGroupSubDetailRequest();
+	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_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_

+ 31 - 37
ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h

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

+ 7 - 4
ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h

@@ -42,16 +42,19 @@ namespace AlibabaCloud
 						std::string httpInternetEndpoint;
 						std::string httpInternetSecureEndpoint;
 					};
-					Endpoints endpoints;
 					long maxTps;
+					int spInstanceType;
+					std::string instanceId;
+					std::string createTime;
+					bool independentNaming;
+					std::string remark;
+					Endpoints endpoints;
 					std::string instanceName;
 					int topicCapacity;
+					std::string spInstanceId;
 					long releaseTime;
-					std::string instanceId;
 					int instanceStatus;
-					bool independentNaming;
 					int instanceType;
-					std::string remark;
 				};
 
 

+ 34 - 40
ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h

@@ -1,51 +1,45 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsInstanceCreateRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsInstanceCreateRequest();
-				~OnsInstanceCreateRequest();
-
-				std::string getRemark()const;
-				void setRemark(const std::string& remark);
-				std::string getInstanceName()const;
-				void setInstanceName(const std::string& instanceName);
-
-            private:
-				std::string remark_;
-				std::string instanceName_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsInstanceCreateRequest : public RpcServiceRequest {
+public:
+	OnsInstanceCreateRequest();
+	~OnsInstanceCreateRequest();
+	std::string getRemark() const;
+	void setRemark(const std::string &remark);
+	std::string getInstanceName() const;
+	void setInstanceName(const std::string &instanceName);
+
+private:
+	std::string remark_;
+	std::string instanceName_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_

+ 31 - 37
ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h

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

+ 38 - 43
ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h

@@ -1,54 +1,49 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsInstanceInServiceListRequest : public RpcServiceRequest
-			{
-			public:
-				struct Tag
-				{
-					std::string value;
-					std::string key;
-				};
-
-			public:
-				OnsInstanceInServiceListRequest();
-				~OnsInstanceInServiceListRequest();
-
-				std::vector<Tag> getTag()const;
-				void setTag(const std::vector<Tag>& tag);
-
-            private:
-				std::vector<Tag> tag_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsInstanceInServiceListRequest : public RpcServiceRequest {
+public:
+	struct Tag {
+		std::string value;
+		std::string key;
+	};
+	OnsInstanceInServiceListRequest();
+	~OnsInstanceInServiceListRequest();
+	std::string getUserId() const;
+	void setUserId(const std::string &userId);
+	std::vector<Tag> getTag() const;
+	void setTag(const std::vector<Tag> &tag);
+
+private:
+	std::string userId_;
+	std::vector<Tag> tag_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_

+ 37 - 43
ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h

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

+ 37 - 43
ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h

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

+ 37 - 43
ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h

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

+ 49 - 55
ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h

@@ -1,66 +1,60 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsMessagePageQueryByTopicRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsMessagePageQueryByTopicRequest();
-				~OnsMessagePageQueryByTopicRequest();
-
-				long getEndTime()const;
-				void setEndTime(long endTime);
-				long getBeginTime()const;
-				void setBeginTime(long beginTime);
-				int getCurrentPage()const;
-				void setCurrentPage(int currentPage);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				int getPageSize()const;
-				void setPageSize(int pageSize);
-				std::string getTopic()const;
-				void setTopic(const std::string& topic);
-				std::string getTaskId()const;
-				void setTaskId(const std::string& taskId);
-
-            private:
-				long endTime_;
-				long beginTime_;
-				int currentPage_;
-				std::string instanceId_;
-				int pageSize_;
-				std::string topic_;
-				std::string taskId_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsMessagePageQueryByTopicRequest : public RpcServiceRequest {
+public:
+	OnsMessagePageQueryByTopicRequest();
+	~OnsMessagePageQueryByTopicRequest();
+	long getEndTime() const;
+	void setEndTime(long endTime);
+	long getBeginTime() const;
+	void setBeginTime(long beginTime);
+	int getCurrentPage() const;
+	void setCurrentPage(int currentPage);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	int getPageSize() const;
+	void setPageSize(int pageSize);
+	std::string getTopic() const;
+	void setTopic(const std::string &topic);
+	std::string getTaskId() const;
+	void setTaskId(const std::string &taskId);
+
+private:
+	long endTime_;
+	long beginTime_;
+	int currentPage_;
+	std::string instanceId_;
+	int pageSize_;
+	std::string topic_;
+	std::string taskId_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_

+ 43 - 49
ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h

@@ -1,60 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsMessagePushRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsMessagePushRequest();
-				~OnsMessagePushRequest();
-
-				std::string getClientId()const;
-				void setClientId(const std::string& clientId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string getMsgId()const;
-				void setMsgId(const std::string& msgId);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getTopic()const;
-				void setTopic(const std::string& topic);
-
-            private:
-				std::string clientId_;
-				std::string groupId_;
-				std::string msgId_;
-				std::string instanceId_;
-				std::string topic_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsMessagePushRequest : public RpcServiceRequest {
+public:
+	OnsMessagePushRequest();
+	~OnsMessagePushRequest();
+	std::string getClientId() const;
+	void setClientId(const std::string &clientId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string getMsgId() const;
+	void setMsgId(const std::string &msgId);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::string getTopic() const;
+	void setTopic(const std::string &topic);
+
+private:
+	std::string clientId_;
+	std::string groupId_;
+	std::string msgId_;
+	std::string instanceId_;
+	std::string topic_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_

+ 37 - 43
ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h

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

+ 28 - 34
ons/include/alibabacloud/ons/model/OnsRegionListRequest.h

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

+ 1 - 1
ons/include/alibabacloud/ons/model/OnsRegionListResult.h

@@ -36,8 +36,8 @@ namespace AlibabaCloud
 				{
 					std::string channelName;
 					std::string regionName;
-					std::string onsRegionId;
 					long createTime;
+					std::string onsRegionId;
 					long updateTime;
 					long id;
 					int channelId;

+ 40 - 46
ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h

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

+ 34 - 40
ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h

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

+ 44 - 49
ons/include/alibabacloud/ons/model/OnsTopicListRequest.h

@@ -1,60 +1,55 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsTopicListRequest : public RpcServiceRequest
-			{
-			public:
-				struct Tag
-				{
-					std::string value;
-					std::string key;
-				};
-
-			public:
-				OnsTopicListRequest();
-				~OnsTopicListRequest();
-
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getTopic()const;
-				void setTopic(const std::string& topic);
-				std::vector<Tag> getTag()const;
-				void setTag(const std::vector<Tag>& tag);
-
-            private:
-				std::string instanceId_;
-				std::string topic_;
-				std::vector<Tag> tag_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsTopicListRequest : public RpcServiceRequest {
+public:
+	struct Tag {
+		std::string value;
+		std::string key;
+	};
+	OnsTopicListRequest();
+	~OnsTopicListRequest();
+	std::string getUserId() const;
+	void setUserId(const std::string &userId);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::string getTopic() const;
+	void setTopic(const std::string &topic);
+	std::vector<Tag> getTag() const;
+	void setTag(const std::vector<Tag> &tag);
+
+private:
+	std::string userId_;
+	std::string instanceId_;
+	std::string topic_;
+	std::vector<Tag> tag_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_

+ 34 - 40
ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h

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

+ 34 - 40
ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h

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

+ 37 - 43
ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h

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

+ 31 - 37
ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h

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

+ 43 - 49
ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h

@@ -1,60 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgIdRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsTraceQueryByMsgIdRequest();
-				~OnsTraceQueryByMsgIdRequest();
-
-				std::string getMsgId()const;
-				void setMsgId(const std::string& msgId);
-				long getEndTime()const;
-				void setEndTime(long endTime);
-				long getBeginTime()const;
-				void setBeginTime(long beginTime);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getTopic()const;
-				void setTopic(const std::string& topic);
-
-            private:
-				std::string msgId_;
-				long endTime_;
-				long beginTime_;
-				std::string instanceId_;
-				std::string topic_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgIdRequest : public RpcServiceRequest {
+public:
+	OnsTraceQueryByMsgIdRequest();
+	~OnsTraceQueryByMsgIdRequest();
+	std::string getMsgId() const;
+	void setMsgId(const std::string &msgId);
+	long getEndTime() const;
+	void setEndTime(long endTime);
+	long getBeginTime() const;
+	void setBeginTime(long beginTime);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::string getTopic() const;
+	void setTopic(const std::string &topic);
+
+private:
+	std::string msgId_;
+	long endTime_;
+	long beginTime_;
+	std::string instanceId_;
+	std::string topic_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_

+ 43 - 49
ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h

@@ -1,60 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgKeyRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsTraceQueryByMsgKeyRequest();
-				~OnsTraceQueryByMsgKeyRequest();
-
-				long getEndTime()const;
-				void setEndTime(long endTime);
-				long getBeginTime()const;
-				void setBeginTime(long beginTime);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getTopic()const;
-				void setTopic(const std::string& topic);
-				std::string getMsgKey()const;
-				void setMsgKey(const std::string& msgKey);
-
-            private:
-				long endTime_;
-				long beginTime_;
-				std::string instanceId_;
-				std::string topic_;
-				std::string msgKey_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgKeyRequest : public RpcServiceRequest {
+public:
+	OnsTraceQueryByMsgKeyRequest();
+	~OnsTraceQueryByMsgKeyRequest();
+	long getEndTime() const;
+	void setEndTime(long endTime);
+	long getBeginTime() const;
+	void setBeginTime(long beginTime);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::string getTopic() const;
+	void setTopic(const std::string &topic);
+	std::string getMsgKey() const;
+	void setMsgKey(const std::string &msgKey);
+
+private:
+	long endTime_;
+	long beginTime_;
+	std::string instanceId_;
+	std::string topic_;
+	std::string msgKey_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_

+ 49 - 55
ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h

@@ -1,66 +1,60 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsTrendGroupOutputTpsRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsTrendGroupOutputTpsRequest();
-				~OnsTrendGroupOutputTpsRequest();
-
-				long getPeriod()const;
-				void setPeriod(long period);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				long getEndTime()const;
-				void setEndTime(long endTime);
-				long getBeginTime()const;
-				void setBeginTime(long beginTime);
-				int getType()const;
-				void setType(int type);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getTopic()const;
-				void setTopic(const std::string& topic);
-
-            private:
-				long period_;
-				std::string groupId_;
-				long endTime_;
-				long beginTime_;
-				int type_;
-				std::string instanceId_;
-				std::string topic_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsTrendGroupOutputTpsRequest : public RpcServiceRequest {
+public:
+	OnsTrendGroupOutputTpsRequest();
+	~OnsTrendGroupOutputTpsRequest();
+	long getPeriod() const;
+	void setPeriod(long period);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	long getEndTime() const;
+	void setEndTime(long endTime);
+	long getBeginTime() const;
+	void setBeginTime(long beginTime);
+	int getType() const;
+	void setType(int type);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::string getTopic() const;
+	void setTopic(const std::string &topic);
+
+private:
+	long period_;
+	std::string groupId_;
+	long endTime_;
+	long beginTime_;
+	int type_;
+	std::string instanceId_;
+	std::string topic_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_

+ 46 - 52
ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h

@@ -1,63 +1,57 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsTrendTopicInputTpsRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsTrendTopicInputTpsRequest();
-				~OnsTrendTopicInputTpsRequest();
-
-				long getPeriod()const;
-				void setPeriod(long period);
-				long getEndTime()const;
-				void setEndTime(long endTime);
-				long getBeginTime()const;
-				void setBeginTime(long beginTime);
-				int getType()const;
-				void setType(int type);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getTopic()const;
-				void setTopic(const std::string& topic);
-
-            private:
-				long period_;
-				long endTime_;
-				long beginTime_;
-				int type_;
-				std::string instanceId_;
-				std::string topic_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OnsTrendTopicInputTpsRequest : public RpcServiceRequest {
+public:
+	OnsTrendTopicInputTpsRequest();
+	~OnsTrendTopicInputTpsRequest();
+	long getPeriod() const;
+	void setPeriod(long period);
+	long getEndTime() const;
+	void setEndTime(long endTime);
+	long getBeginTime() const;
+	void setBeginTime(long beginTime);
+	int getType() const;
+	void setType(int type);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::string getTopic() const;
+	void setTopic(const std::string &topic);
+
+private:
+	long period_;
+	long endTime_;
+	long beginTime_;
+	int type_;
+	std::string instanceId_;
+	std::string topic_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_

+ 0 - 72
ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h

@@ -1,72 +0,0 @@
-/*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_ONSWARNCREATEREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSWARNCREATEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsWarnCreateRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsWarnCreateRequest();
-				~OnsWarnCreateRequest();
-
-				std::string getLevel()const;
-				void setLevel(const std::string& level);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string getDelayTime()const;
-				void setDelayTime(const std::string& delayTime);
-				std::string getThreshold()const;
-				void setThreshold(const std::string& threshold);
-				std::string getAlertTime()const;
-				void setAlertTime(const std::string& alertTime);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::string getBlockTime()const;
-				void setBlockTime(const std::string& blockTime);
-				std::string getTopic()const;
-				void setTopic(const std::string& topic);
-				std::string getContacts()const;
-				void setContacts(const std::string& contacts);
-
-            private:
-				std::string level_;
-				std::string groupId_;
-				std::string delayTime_;
-				std::string threshold_;
-				std::string alertTime_;
-				std::string instanceId_;
-				std::string blockTime_;
-				std::string topic_;
-				std::string contacts_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_ONSWARNCREATEREQUEST_H_

+ 0 - 51
ons/include/alibabacloud/ons/model/OnsWarnCreateResult.h

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

+ 0 - 54
ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h

@@ -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_ONSWARNDELETEREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_ONSWARNDELETEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OnsWarnDeleteRequest : public RpcServiceRequest
-			{
-
-			public:
-				OnsWarnDeleteRequest();
-				~OnsWarnDeleteRequest();
-
-				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_ONSWARNDELETEREQUEST_H_

+ 0 - 51
ons/include/alibabacloud/ons/model/OnsWarnDeleteResult.h

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

+ 28 - 34
ons/include/alibabacloud/ons/model/OpenOnsServiceRequest.h

@@ -1,45 +1,39 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT 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_OPENONSSERVICEREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT OpenOnsServiceRequest : public RpcServiceRequest
-			{
-
-			public:
-				OpenOnsServiceRequest();
-				~OpenOnsServiceRequest();
-
-
-            private:
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT OpenOnsServiceRequest : public RpcServiceRequest {
+public:
+	OpenOnsServiceRequest();
+	~OpenOnsServiceRequest();
+
+private:
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_

+ 44 - 52
ons/include/alibabacloud/ons/model/TagResourcesRequest.h

@@ -1,63 +1,55 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT TagResourcesRequest : public RpcServiceRequest
-			{
-			public:
-				struct Tag
-				{
-					std::string value;
-					std::string key;
-				};
-
-			public:
-				TagResourcesRequest();
-				~TagResourcesRequest();
-
-				std::vector<std::string> getResourceId()const;
-				void setResourceId(const std::vector<std::string>& resourceId);
-				std::string getResourceType()const;
-				void setResourceType(const std::string& resourceType);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::vector<Tag> getTag()const;
-				void setTag(const std::vector<Tag>& tag);
-
-            private:
-				std::vector<std::string> resourceId_;
-				std::string resourceType_;
-				std::string instanceId_;
-				std::vector<Tag> tag_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT TagResourcesRequest : public RpcServiceRequest {
+public:
+	struct Tag {
+		std::string value;
+		std::string key;
+	};
+	TagResourcesRequest();
+	~TagResourcesRequest();
+	std::vector<std::string> getResourceId() const;
+	void setResourceId(const std::vector<std::string> &resourceId);
+	std::string getResourceType() const;
+	void setResourceType(const std::string &resourceType);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::vector<Tag> getTag() const;
+	void setTag(const std::vector<Tag> &tag);
+
+private:
+	std::vector<std::string> resourceId_;
+	std::string resourceType_;
+	std::string instanceId_;
+	std::vector<Tag> tag_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_

+ 43 - 49
ons/include/alibabacloud/ons/model/UntagResourcesRequest.h

@@ -1,60 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_
-#define ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/ons/OnsExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Ons
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_ONS_EXPORT UntagResourcesRequest : public RpcServiceRequest
-			{
-
-			public:
-				UntagResourcesRequest();
-				~UntagResourcesRequest();
-
-				bool getAll()const;
-				void setAll(bool all);
-				std::vector<std::string> getResourceId()const;
-				void setResourceId(const std::vector<std::string>& resourceId);
-				std::string getResourceType()const;
-				void setResourceType(const std::string& resourceType);
-				std::string getInstanceId()const;
-				void setInstanceId(const std::string& instanceId);
-				std::vector<std::string> getTagKey()const;
-				void setTagKey(const std::vector<std::string>& tagKey);
-
-            private:
-				bool all_;
-				std::vector<std::string> resourceId_;
-				std::string resourceType_;
-				std::string instanceId_;
-				std::vector<std::string> tagKey_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_
+#define ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_
+
+#include <alibabacloud/ons/OnsExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Ons {
+namespace Model {
+class ALIBABACLOUD_ONS_EXPORT UntagResourcesRequest : public RpcServiceRequest {
+public:
+	UntagResourcesRequest();
+	~UntagResourcesRequest();
+	bool getAll() const;
+	void setAll(bool all);
+	std::vector<std::string> getResourceId() const;
+	void setResourceId(const std::vector<std::string> &resourceId);
+	std::string getResourceType() const;
+	void setResourceType(const std::string &resourceType);
+	std::string getInstanceId() const;
+	void setInstanceId(const std::string &instanceId);
+	std::vector<std::string> getTagKey() const;
+	void setTagKey(const std::vector<std::string> &tagKey);
+
+private:
+	bool all_;
+	std::vector<std::string> resourceId_;
+	std::string resourceType_;
+	std::string instanceId_;
+	std::vector<std::string> tagKey_;
+};
+} // namespace Model
+} // namespace Ons
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_

+ 0 - 72
ons/src/OnsClient.cc

@@ -1347,78 +1347,6 @@ OnsClient::OnsTrendTopicInputTpsOutcomeCallable OnsClient::onsTrendTopicInputTps
 	return task->get_future();
 }
 
-OnsClient::OnsWarnCreateOutcome OnsClient::onsWarnCreate(const OnsWarnCreateRequest &request) const
-{
-	auto endpointOutcome = endpointProvider_->getEndpoint();
-	if (!endpointOutcome.isSuccess())
-		return OnsWarnCreateOutcome(endpointOutcome.error());
-
-	auto outcome = makeRequest(endpointOutcome.result(), request);
-
-	if (outcome.isSuccess())
-		return OnsWarnCreateOutcome(OnsWarnCreateResult(outcome.result()));
-	else
-		return OnsWarnCreateOutcome(outcome.error());
-}
-
-void OnsClient::onsWarnCreateAsync(const OnsWarnCreateRequest& request, const OnsWarnCreateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
-{
-	auto fn = [this, request, handler, context]()
-	{
-		handler(this, request, onsWarnCreate(request), context);
-	};
-
-	asyncExecute(new Runnable(fn));
-}
-
-OnsClient::OnsWarnCreateOutcomeCallable OnsClient::onsWarnCreateCallable(const OnsWarnCreateRequest &request) const
-{
-	auto task = std::make_shared<std::packaged_task<OnsWarnCreateOutcome()>>(
-			[this, request]()
-			{
-			return this->onsWarnCreate(request);
-			});
-
-	asyncExecute(new Runnable([task]() { (*task)(); }));
-	return task->get_future();
-}
-
-OnsClient::OnsWarnDeleteOutcome OnsClient::onsWarnDelete(const OnsWarnDeleteRequest &request) const
-{
-	auto endpointOutcome = endpointProvider_->getEndpoint();
-	if (!endpointOutcome.isSuccess())
-		return OnsWarnDeleteOutcome(endpointOutcome.error());
-
-	auto outcome = makeRequest(endpointOutcome.result(), request);
-
-	if (outcome.isSuccess())
-		return OnsWarnDeleteOutcome(OnsWarnDeleteResult(outcome.result()));
-	else
-		return OnsWarnDeleteOutcome(outcome.error());
-}
-
-void OnsClient::onsWarnDeleteAsync(const OnsWarnDeleteRequest& request, const OnsWarnDeleteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
-{
-	auto fn = [this, request, handler, context]()
-	{
-		handler(this, request, onsWarnDelete(request), context);
-	};
-
-	asyncExecute(new Runnable(fn));
-}
-
-OnsClient::OnsWarnDeleteOutcomeCallable OnsClient::onsWarnDeleteCallable(const OnsWarnDeleteRequest &request) const
-{
-	auto task = std::make_shared<std::packaged_task<OnsWarnDeleteOutcome()>>(
-			[this, request]()
-			{
-			return this->onsWarnDelete(request);
-			});
-
-	asyncExecute(new Runnable([task]() { (*task)(); }));
-	return task->get_future();
-}
-
 OnsClient::OpenOnsServiceOutcome OnsClient::openOnsService(const OpenOnsServiceRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 45 - 60
ons/src/model/ListTagResourcesRequest.cc

@@ -1,91 +1,76 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/ListTagResourcesRequest.h>
-
-using AlibabaCloud::Ons::Model::ListTagResourcesRequest;
-
-ListTagResourcesRequest::ListTagResourcesRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "ListTagResources")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-ListTagResourcesRequest::~ListTagResourcesRequest()
-{}
-
-std::vector<std::string> ListTagResourcesRequest::getResourceId()const
-{
-	return resourceId_;
+ */
+
+#include <alibabacloud/ons/model/ListTagResourcesRequest.h>
+
+using AlibabaCloud::Ons::Model::ListTagResourcesRequest;
+
+ListTagResourcesRequest::ListTagResourcesRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "ListTagResources") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+ListTagResourcesRequest::~ListTagResourcesRequest() {}
+
+std::vector<std::string> ListTagResourcesRequest::getResourceId() const {
+  return resourceId_;
 }
 
-void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
-{
-	resourceId_ = resourceId;
-	for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
-		setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
-	}
+void ListTagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
+  resourceId_ = resourceId;
 }
 
-std::string ListTagResourcesRequest::getResourceType()const
-{
-	return resourceType_;
+std::string ListTagResourcesRequest::getResourceType() const {
+  return resourceType_;
 }
 
-void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
-{
-	resourceType_ = resourceType;
-	setParameter("ResourceType", resourceType);
+void ListTagResourcesRequest::setResourceType(const std::string &resourceType) {
+  resourceType_ = resourceType;
+  setParameter(std::string("ResourceType"), resourceType);
 }
 
-std::string ListTagResourcesRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string ListTagResourcesRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void ListTagResourcesRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void ListTagResourcesRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string ListTagResourcesRequest::getNextToken()const
-{
-	return nextToken_;
+std::string ListTagResourcesRequest::getNextToken() const {
+  return nextToken_;
 }
 
-void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
-{
-	nextToken_ = nextToken;
-	setParameter("NextToken", nextToken);
+void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
+  nextToken_ = nextToken;
+  setParameter(std::string("NextToken"), nextToken);
 }
 
-std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
-{
-	return tag_;
+std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag() const {
+  return tag_;
 }
 
-void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
-{
-	tag_ = tag;
-	for(int dep1 = 0; dep1!= tag.size(); dep1++) {
-		auto tagObj = tag.at(dep1);
-		std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
-		setParameter(tagObjStr + ".Value", tagObj.value);
-		setParameter(tagObjStr + ".Key", tagObj.key);
-	}
+void ListTagResourcesRequest::setTag(const std::vector<ListTagResourcesRequest::Tag> &tag) {
+  tag_ = tag;
+  for(int dep1 = 0; dep1 != tag.size(); dep1++) {
+  auto tagObj = tag.at(dep1);
+  std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
+    setParameter(tagObjStr + ".Value", tagObj.value);
+    setParameter(tagObjStr + ".Key", tagObj.key);
+  }
 }
 

+ 31 - 39
ons/src/model/OnsConsumerAccumulateRequest.cc

@@ -1,62 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsConsumerAccumulateRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsConsumerAccumulateRequest;
-
-OnsConsumerAccumulateRequest::OnsConsumerAccumulateRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsConsumerAccumulate")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsConsumerAccumulateRequest::~OnsConsumerAccumulateRequest()
-{}
-
-std::string OnsConsumerAccumulateRequest::getGroupId()const
-{
-	return groupId_;
+ */
+
+#include <alibabacloud/ons/model/OnsConsumerAccumulateRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsConsumerAccumulateRequest;
+
+OnsConsumerAccumulateRequest::OnsConsumerAccumulateRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsConsumerAccumulate") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsConsumerAccumulateRequest::~OnsConsumerAccumulateRequest() {}
+
+std::string OnsConsumerAccumulateRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsConsumerAccumulateRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsConsumerAccumulateRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string OnsConsumerAccumulateRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsConsumerAccumulateRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsConsumerAccumulateRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsConsumerAccumulateRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-bool OnsConsumerAccumulateRequest::getDetail()const
-{
-	return detail_;
+bool OnsConsumerAccumulateRequest::getDetail() const {
+  return detail_;
 }
 
-void OnsConsumerAccumulateRequest::setDetail(bool detail)
-{
-	detail_ = detail;
-	setParameter("Detail", detail ? "true" : "false");
+void OnsConsumerAccumulateRequest::setDetail(bool detail) {
+  detail_ = detail;
+  setParameter(std::string("Detail"), detail ? "true" : "false");
 }
 

+ 26 - 32
ons/src/model/OnsConsumerGetConnectionRequest.cc

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

+ 41 - 53
ons/src/model/OnsConsumerResetOffsetRequest.cc

@@ -1,84 +1,72 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsConsumerResetOffsetRequest;
-
-OnsConsumerResetOffsetRequest::OnsConsumerResetOffsetRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsConsumerResetOffset")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsConsumerResetOffsetRequest::~OnsConsumerResetOffsetRequest()
-{}
-
-std::string OnsConsumerResetOffsetRequest::getGroupId()const
-{
-	return groupId_;
+ */
+
+#include <alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsConsumerResetOffsetRequest;
+
+OnsConsumerResetOffsetRequest::OnsConsumerResetOffsetRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsConsumerResetOffset") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsConsumerResetOffsetRequest::~OnsConsumerResetOffsetRequest() {}
+
+std::string OnsConsumerResetOffsetRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsConsumerResetOffsetRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsConsumerResetOffsetRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-long OnsConsumerResetOffsetRequest::getResetTimestamp()const
-{
-	return resetTimestamp_;
+long OnsConsumerResetOffsetRequest::getResetTimestamp() const {
+  return resetTimestamp_;
 }
 
-void OnsConsumerResetOffsetRequest::setResetTimestamp(long resetTimestamp)
-{
-	resetTimestamp_ = resetTimestamp;
-	setParameter("ResetTimestamp", std::to_string(resetTimestamp));
+void OnsConsumerResetOffsetRequest::setResetTimestamp(long resetTimestamp) {
+  resetTimestamp_ = resetTimestamp;
+  setParameter(std::string("ResetTimestamp"), std::to_string(resetTimestamp));
 }
 
-int OnsConsumerResetOffsetRequest::getType()const
-{
-	return type_;
+int OnsConsumerResetOffsetRequest::getType() const {
+  return type_;
 }
 
-void OnsConsumerResetOffsetRequest::setType(int type)
-{
-	type_ = type;
-	setParameter("Type", std::to_string(type));
+void OnsConsumerResetOffsetRequest::setType(int type) {
+  type_ = type;
+  setParameter(std::string("Type"), std::to_string(type));
 }
 
-std::string OnsConsumerResetOffsetRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsConsumerResetOffsetRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsConsumerResetOffsetRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsConsumerResetOffsetRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsConsumerResetOffsetRequest::getTopic()const
-{
-	return topic_;
+std::string OnsConsumerResetOffsetRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsConsumerResetOffsetRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsConsumerResetOffsetRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 

+ 36 - 46
ons/src/model/OnsConsumerStatusRequest.cc

@@ -1,73 +1,63 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsConsumerStatusRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsConsumerStatusRequest;
-
-OnsConsumerStatusRequest::OnsConsumerStatusRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsConsumerStatus")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsConsumerStatusRequest::~OnsConsumerStatusRequest()
-{}
-
-std::string OnsConsumerStatusRequest::getGroupId()const
-{
-	return groupId_;
+ */
+
+#include <alibabacloud/ons/model/OnsConsumerStatusRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsConsumerStatusRequest;
+
+OnsConsumerStatusRequest::OnsConsumerStatusRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsConsumerStatus") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsConsumerStatusRequest::~OnsConsumerStatusRequest() {}
+
+std::string OnsConsumerStatusRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsConsumerStatusRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsConsumerStatusRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string OnsConsumerStatusRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsConsumerStatusRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsConsumerStatusRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsConsumerStatusRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-bool OnsConsumerStatusRequest::getNeedJstack()const
-{
-	return needJstack_;
+bool OnsConsumerStatusRequest::getNeedJstack() const {
+  return needJstack_;
 }
 
-void OnsConsumerStatusRequest::setNeedJstack(bool needJstack)
-{
-	needJstack_ = needJstack;
-	setParameter("NeedJstack", needJstack ? "true" : "false");
+void OnsConsumerStatusRequest::setNeedJstack(bool needJstack) {
+  needJstack_ = needJstack;
+  setParameter(std::string("NeedJstack"), needJstack ? "true" : "false");
 }
 
-bool OnsConsumerStatusRequest::getDetail()const
-{
-	return detail_;
+bool OnsConsumerStatusRequest::getDetail() const {
+  return detail_;
 }
 
-void OnsConsumerStatusRequest::setDetail(bool detail)
-{
-	detail_ = detail;
-	setParameter("Detail", detail ? "true" : "false");
+void OnsConsumerStatusRequest::setDetail(bool detail) {
+  detail_ = detail;
+  setParameter(std::string("Detail"), detail ? "true" : "false");
 }
 

+ 31 - 39
ons/src/model/OnsConsumerTimeSpanRequest.cc

@@ -1,62 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsConsumerTimeSpanRequest;
-
-OnsConsumerTimeSpanRequest::OnsConsumerTimeSpanRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsConsumerTimeSpan")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsConsumerTimeSpanRequest::~OnsConsumerTimeSpanRequest()
-{}
-
-std::string OnsConsumerTimeSpanRequest::getGroupId()const
-{
-	return groupId_;
+ */
+
+#include <alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsConsumerTimeSpanRequest;
+
+OnsConsumerTimeSpanRequest::OnsConsumerTimeSpanRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsConsumerTimeSpan") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsConsumerTimeSpanRequest::~OnsConsumerTimeSpanRequest() {}
+
+std::string OnsConsumerTimeSpanRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsConsumerTimeSpanRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsConsumerTimeSpanRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string OnsConsumerTimeSpanRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsConsumerTimeSpanRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsConsumerTimeSpanRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsConsumerTimeSpanRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsConsumerTimeSpanRequest::getTopic()const
-{
-	return topic_;
+std::string OnsConsumerTimeSpanRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsConsumerTimeSpanRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsConsumerTimeSpanRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 

+ 31 - 39
ons/src/model/OnsDLQMessageGetByIdRequest.cc

@@ -1,62 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsDLQMessageGetByIdRequest;
-
-OnsDLQMessageGetByIdRequest::OnsDLQMessageGetByIdRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageGetById")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsDLQMessageGetByIdRequest::~OnsDLQMessageGetByIdRequest()
-{}
-
-std::string OnsDLQMessageGetByIdRequest::getGroupId()const
-{
-	return groupId_;
+ */
+
+#include <alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsDLQMessageGetByIdRequest;
+
+OnsDLQMessageGetByIdRequest::OnsDLQMessageGetByIdRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageGetById") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsDLQMessageGetByIdRequest::~OnsDLQMessageGetByIdRequest() {}
+
+std::string OnsDLQMessageGetByIdRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsDLQMessageGetByIdRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsDLQMessageGetByIdRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string OnsDLQMessageGetByIdRequest::getMsgId()const
-{
-	return msgId_;
+std::string OnsDLQMessageGetByIdRequest::getMsgId() const {
+  return msgId_;
 }
 
-void OnsDLQMessageGetByIdRequest::setMsgId(const std::string& msgId)
-{
-	msgId_ = msgId;
-	setParameter("MsgId", msgId);
+void OnsDLQMessageGetByIdRequest::setMsgId(const std::string &msgId) {
+  msgId_ = msgId;
+  setParameter(std::string("MsgId"), msgId);
 }
 
-std::string OnsDLQMessageGetByIdRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsDLQMessageGetByIdRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsDLQMessageGetByIdRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsDLQMessageGetByIdRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 

+ 51 - 67
ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc

@@ -1,106 +1,90 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsDLQMessagePageQueryByGroupIdRequest;
-
-OnsDLQMessagePageQueryByGroupIdRequest::OnsDLQMessagePageQueryByGroupIdRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessagePageQueryByGroupId")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsDLQMessagePageQueryByGroupIdRequest::~OnsDLQMessagePageQueryByGroupIdRequest()
-{}
-
-std::string OnsDLQMessagePageQueryByGroupIdRequest::getGroupId()const
-{
-	return groupId_;
+ */
+
+#include <alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsDLQMessagePageQueryByGroupIdRequest;
+
+OnsDLQMessagePageQueryByGroupIdRequest::OnsDLQMessagePageQueryByGroupIdRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessagePageQueryByGroupId") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsDLQMessagePageQueryByGroupIdRequest::~OnsDLQMessagePageQueryByGroupIdRequest() {}
+
+std::string OnsDLQMessagePageQueryByGroupIdRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsDLQMessagePageQueryByGroupIdRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsDLQMessagePageQueryByGroupIdRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-long OnsDLQMessagePageQueryByGroupIdRequest::getEndTime()const
-{
-	return endTime_;
+long OnsDLQMessagePageQueryByGroupIdRequest::getEndTime() const {
+  return endTime_;
 }
 
-void OnsDLQMessagePageQueryByGroupIdRequest::setEndTime(long endTime)
-{
-	endTime_ = endTime;
-	setParameter("EndTime", std::to_string(endTime));
+void OnsDLQMessagePageQueryByGroupIdRequest::setEndTime(long endTime) {
+  endTime_ = endTime;
+  setParameter(std::string("EndTime"), std::to_string(endTime));
 }
 
-long OnsDLQMessagePageQueryByGroupIdRequest::getBeginTime()const
-{
-	return beginTime_;
+long OnsDLQMessagePageQueryByGroupIdRequest::getBeginTime() const {
+  return beginTime_;
 }
 
-void OnsDLQMessagePageQueryByGroupIdRequest::setBeginTime(long beginTime)
-{
-	beginTime_ = beginTime;
-	setParameter("BeginTime", std::to_string(beginTime));
+void OnsDLQMessagePageQueryByGroupIdRequest::setBeginTime(long beginTime) {
+  beginTime_ = beginTime;
+  setParameter(std::string("BeginTime"), std::to_string(beginTime));
 }
 
-int OnsDLQMessagePageQueryByGroupIdRequest::getCurrentPage()const
-{
-	return currentPage_;
+int OnsDLQMessagePageQueryByGroupIdRequest::getCurrentPage() const {
+  return currentPage_;
 }
 
-void OnsDLQMessagePageQueryByGroupIdRequest::setCurrentPage(int currentPage)
-{
-	currentPage_ = currentPage;
-	setParameter("CurrentPage", std::to_string(currentPage));
+void OnsDLQMessagePageQueryByGroupIdRequest::setCurrentPage(int currentPage) {
+  currentPage_ = currentPage;
+  setParameter(std::string("CurrentPage"), std::to_string(currentPage));
 }
 
-std::string OnsDLQMessagePageQueryByGroupIdRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsDLQMessagePageQueryByGroupIdRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsDLQMessagePageQueryByGroupIdRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsDLQMessagePageQueryByGroupIdRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-int OnsDLQMessagePageQueryByGroupIdRequest::getPageSize()const
-{
-	return pageSize_;
+int OnsDLQMessagePageQueryByGroupIdRequest::getPageSize() const {
+  return pageSize_;
 }
 
-void OnsDLQMessagePageQueryByGroupIdRequest::setPageSize(int pageSize)
-{
-	pageSize_ = pageSize;
-	setParameter("PageSize", std::to_string(pageSize));
+void OnsDLQMessagePageQueryByGroupIdRequest::setPageSize(int pageSize) {
+  pageSize_ = pageSize;
+  setParameter(std::string("PageSize"), std::to_string(pageSize));
 }
 
-std::string OnsDLQMessagePageQueryByGroupIdRequest::getTaskId()const
-{
-	return taskId_;
+std::string OnsDLQMessagePageQueryByGroupIdRequest::getTaskId() const {
+  return taskId_;
 }
 
-void OnsDLQMessagePageQueryByGroupIdRequest::setTaskId(const std::string& taskId)
-{
-	taskId_ = taskId;
-	setParameter("TaskId", taskId);
+void OnsDLQMessagePageQueryByGroupIdRequest::setTaskId(const std::string &taskId) {
+  taskId_ = taskId;
+  setParameter(std::string("TaskId"), taskId);
 }
 

+ 31 - 39
ons/src/model/OnsDLQMessageResendByIdRequest.cc

@@ -1,62 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsDLQMessageResendByIdRequest;
-
-OnsDLQMessageResendByIdRequest::OnsDLQMessageResendByIdRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageResendById")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsDLQMessageResendByIdRequest::~OnsDLQMessageResendByIdRequest()
-{}
-
-std::string OnsDLQMessageResendByIdRequest::getGroupId()const
-{
-	return groupId_;
+ */
+
+#include <alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsDLQMessageResendByIdRequest;
+
+OnsDLQMessageResendByIdRequest::OnsDLQMessageResendByIdRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageResendById") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsDLQMessageResendByIdRequest::~OnsDLQMessageResendByIdRequest() {}
+
+std::string OnsDLQMessageResendByIdRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsDLQMessageResendByIdRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsDLQMessageResendByIdRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string OnsDLQMessageResendByIdRequest::getMsgId()const
-{
-	return msgId_;
+std::string OnsDLQMessageResendByIdRequest::getMsgId() const {
+  return msgId_;
 }
 
-void OnsDLQMessageResendByIdRequest::setMsgId(const std::string& msgId)
-{
-	msgId_ = msgId;
-	setParameter("MsgId", msgId);
+void OnsDLQMessageResendByIdRequest::setMsgId(const std::string &msgId) {
+  msgId_ = msgId;
+  setParameter(std::string("MsgId"), msgId);
 }
 
-std::string OnsDLQMessageResendByIdRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsDLQMessageResendByIdRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsDLQMessageResendByIdRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsDLQMessageResendByIdRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 

+ 31 - 39
ons/src/model/OnsGroupConsumerUpdateRequest.cc

@@ -1,62 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsGroupConsumerUpdateRequest;
-
-OnsGroupConsumerUpdateRequest::OnsGroupConsumerUpdateRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsGroupConsumerUpdate")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsGroupConsumerUpdateRequest::~OnsGroupConsumerUpdateRequest()
-{}
-
-std::string OnsGroupConsumerUpdateRequest::getGroupId()const
-{
-	return groupId_;
+ */
+
+#include <alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsGroupConsumerUpdateRequest;
+
+OnsGroupConsumerUpdateRequest::OnsGroupConsumerUpdateRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsGroupConsumerUpdate") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsGroupConsumerUpdateRequest::~OnsGroupConsumerUpdateRequest() {}
+
+std::string OnsGroupConsumerUpdateRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsGroupConsumerUpdateRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsGroupConsumerUpdateRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-bool OnsGroupConsumerUpdateRequest::getReadEnable()const
-{
-	return readEnable_;
+bool OnsGroupConsumerUpdateRequest::getReadEnable() const {
+  return readEnable_;
 }
 
-void OnsGroupConsumerUpdateRequest::setReadEnable(bool readEnable)
-{
-	readEnable_ = readEnable;
-	setParameter("ReadEnable", readEnable ? "true" : "false");
+void OnsGroupConsumerUpdateRequest::setReadEnable(bool readEnable) {
+  readEnable_ = readEnable;
+  setParameter(std::string("ReadEnable"), readEnable ? "true" : "false");
 }
 
-std::string OnsGroupConsumerUpdateRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsGroupConsumerUpdateRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsGroupConsumerUpdateRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsGroupConsumerUpdateRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 

+ 36 - 46
ons/src/model/OnsGroupCreateRequest.cc

@@ -1,73 +1,63 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsGroupCreateRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsGroupCreateRequest;
-
-OnsGroupCreateRequest::OnsGroupCreateRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsGroupCreate")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsGroupCreateRequest::~OnsGroupCreateRequest()
-{}
-
-std::string OnsGroupCreateRequest::getGroupId()const
-{
-	return groupId_;
+ */
+
+#include <alibabacloud/ons/model/OnsGroupCreateRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsGroupCreateRequest;
+
+OnsGroupCreateRequest::OnsGroupCreateRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsGroupCreate") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsGroupCreateRequest::~OnsGroupCreateRequest() {}
+
+std::string OnsGroupCreateRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsGroupCreateRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsGroupCreateRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string OnsGroupCreateRequest::getRemark()const
-{
-	return remark_;
+std::string OnsGroupCreateRequest::getRemark() const {
+  return remark_;
 }
 
-void OnsGroupCreateRequest::setRemark(const std::string& remark)
-{
-	remark_ = remark;
-	setParameter("Remark", remark);
+void OnsGroupCreateRequest::setRemark(const std::string &remark) {
+  remark_ = remark;
+  setParameter(std::string("Remark"), remark);
 }
 
-std::string OnsGroupCreateRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsGroupCreateRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsGroupCreateRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsGroupCreateRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsGroupCreateRequest::getGroupType()const
-{
-	return groupType_;
+std::string OnsGroupCreateRequest::getGroupType() const {
+  return groupType_;
 }
 
-void OnsGroupCreateRequest::setGroupType(const std::string& groupType)
-{
-	groupType_ = groupType;
-	setParameter("GroupType", groupType);
+void OnsGroupCreateRequest::setGroupType(const std::string &groupType) {
+  groupType_ = groupType;
+  setParameter(std::string("GroupType"), groupType);
 }
 

+ 26 - 32
ons/src/model/OnsGroupDeleteRequest.cc

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

+ 50 - 51
ons/src/model/OnsGroupListRequest.cc

@@ -1,78 +1,77 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsGroupListRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsGroupListRequest;
-
-OnsGroupListRequest::OnsGroupListRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsGroupList")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsGroupListRequest::~OnsGroupListRequest()
-{}
-
-std::string OnsGroupListRequest::getGroupId()const
-{
-	return groupId_;
+ */
+
+#include <alibabacloud/ons/model/OnsGroupListRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsGroupListRequest;
+
+OnsGroupListRequest::OnsGroupListRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsGroupList") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsGroupListRequest::~OnsGroupListRequest() {}
+
+std::string OnsGroupListRequest::getGroupId() const {
+  return groupId_;
+}
+
+void OnsGroupListRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
+}
+
+std::string OnsGroupListRequest::getUserId() const {
+  return userId_;
 }
 
-void OnsGroupListRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsGroupListRequest::setUserId(const std::string &userId) {
+  userId_ = userId;
+  setParameter(std::string("UserId"), userId);
 }
 
-std::string OnsGroupListRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsGroupListRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsGroupListRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsGroupListRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsGroupListRequest::getGroupType()const
-{
-	return groupType_;
+std::string OnsGroupListRequest::getGroupType() const {
+  return groupType_;
 }
 
-void OnsGroupListRequest::setGroupType(const std::string& groupType)
-{
-	groupType_ = groupType;
-	setParameter("GroupType", groupType);
+void OnsGroupListRequest::setGroupType(const std::string &groupType) {
+  groupType_ = groupType;
+  setParameter(std::string("GroupType"), groupType);
 }
 
-std::vector<OnsGroupListRequest::Tag> OnsGroupListRequest::getTag()const
-{
-	return tag_;
+std::vector<OnsGroupListRequest::Tag> OnsGroupListRequest::getTag() const {
+  return tag_;
 }
 
-void OnsGroupListRequest::setTag(const std::vector<Tag>& tag)
-{
-	tag_ = tag;
-	for(int dep1 = 0; dep1!= tag.size(); dep1++) {
-		auto tagObj = tag.at(dep1);
-		std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
-		setParameter(tagObjStr + ".Value", tagObj.value);
-		setParameter(tagObjStr + ".Key", tagObj.key);
-	}
+void OnsGroupListRequest::setTag(const std::vector<OnsGroupListRequest::Tag> &tag) {
+  tag_ = tag;
+  for(int dep1 = 0; dep1 != tag.size(); dep1++) {
+  auto tagObj = tag.at(dep1);
+  std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
+    setParameter(tagObjStr + ".Value", tagObj.value);
+    setParameter(tagObjStr + ".Key", tagObj.key);
+  }
 }
 

+ 26 - 32
ons/src/model/OnsGroupSubDetailRequest.cc

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

+ 21 - 25
ons/src/model/OnsInstanceBaseInfoRequest.cc

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

+ 8 - 2
ons/src/model/OnsInstanceBaseInfoResult.cc

@@ -58,17 +58,23 @@ void OnsInstanceBaseInfoResult::parse(const std::string &payload)
 		instanceBaseInfo_.instanceId = instanceBaseInfoNode["InstanceId"].asString();
 	if(!instanceBaseInfoNode["InstanceType"].isNull())
 		instanceBaseInfo_.instanceType = std::stoi(instanceBaseInfoNode["InstanceType"].asString());
+	if(!instanceBaseInfoNode["CreateTime"].isNull())
+		instanceBaseInfo_.createTime = instanceBaseInfoNode["CreateTime"].asString();
+	if(!instanceBaseInfoNode["spInstanceId"].isNull())
+		instanceBaseInfo_.spInstanceId = instanceBaseInfoNode["spInstanceId"].asString();
+	if(!instanceBaseInfoNode["spInstanceType"].isNull())
+		instanceBaseInfo_.spInstanceType = std::stoi(instanceBaseInfoNode["spInstanceType"].asString());
 	auto endpointsNode = instanceBaseInfoNode["Endpoints"];
 	if(!endpointsNode["TcpEndpoint"].isNull())
 		instanceBaseInfo_.endpoints.tcpEndpoint = endpointsNode["TcpEndpoint"].asString();
+	if(!endpointsNode["TcpInternetEndpoint"].isNull())
+		instanceBaseInfo_.endpoints.tcpInternetEndpoint = endpointsNode["TcpInternetEndpoint"].asString();
 	if(!endpointsNode["HttpInternetEndpoint"].isNull())
 		instanceBaseInfo_.endpoints.httpInternetEndpoint = endpointsNode["HttpInternetEndpoint"].asString();
 	if(!endpointsNode["HttpInternalEndpoint"].isNull())
 		instanceBaseInfo_.endpoints.httpInternalEndpoint = endpointsNode["HttpInternalEndpoint"].asString();
 	if(!endpointsNode["HttpInternetSecureEndpoint"].isNull())
 		instanceBaseInfo_.endpoints.httpInternetSecureEndpoint = endpointsNode["HttpInternetSecureEndpoint"].asString();
-	if(!endpointsNode["TcpInternetEndpoint"].isNull())
-		instanceBaseInfo_.endpoints.tcpInternetEndpoint = endpointsNode["TcpInternetEndpoint"].asString();
 	if(!value["HelpUrl"].isNull())
 		helpUrl_ = value["HelpUrl"].asString();
 

+ 26 - 32
ons/src/model/OnsInstanceCreateRequest.cc

@@ -1,51 +1,45 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsInstanceCreateRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsInstanceCreateRequest;
-
-OnsInstanceCreateRequest::OnsInstanceCreateRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsInstanceCreate")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsInstanceCreateRequest::~OnsInstanceCreateRequest()
-{}
-
-std::string OnsInstanceCreateRequest::getRemark()const
-{
-	return remark_;
+ */
+
+#include <alibabacloud/ons/model/OnsInstanceCreateRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsInstanceCreateRequest;
+
+OnsInstanceCreateRequest::OnsInstanceCreateRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsInstanceCreate") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsInstanceCreateRequest::~OnsInstanceCreateRequest() {}
+
+std::string OnsInstanceCreateRequest::getRemark() const {
+  return remark_;
 }
 
-void OnsInstanceCreateRequest::setRemark(const std::string& remark)
-{
-	remark_ = remark;
-	setParameter("Remark", remark);
+void OnsInstanceCreateRequest::setRemark(const std::string &remark) {
+  remark_ = remark;
+  setParameter(std::string("Remark"), remark);
 }
 
-std::string OnsInstanceCreateRequest::getInstanceName()const
-{
-	return instanceName_;
+std::string OnsInstanceCreateRequest::getInstanceName() const {
+  return instanceName_;
 }
 
-void OnsInstanceCreateRequest::setInstanceName(const std::string& instanceName)
-{
-	instanceName_ = instanceName;
-	setParameter("InstanceName", instanceName);
+void OnsInstanceCreateRequest::setInstanceName(const std::string &instanceName) {
+  instanceName_ = instanceName;
+  setParameter(std::string("InstanceName"), instanceName);
 }
 

+ 21 - 25
ons/src/model/OnsInstanceDeleteRequest.cc

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

+ 35 - 30
ons/src/model/OnsInstanceInServiceListRequest.cc

@@ -1,45 +1,50 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsInstanceInServiceListRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsInstanceInServiceListRequest;
-
-OnsInstanceInServiceListRequest::OnsInstanceInServiceListRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsInstanceInServiceList")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsInstanceInServiceListRequest::~OnsInstanceInServiceListRequest()
-{}
-
-std::vector<OnsInstanceInServiceListRequest::Tag> OnsInstanceInServiceListRequest::getTag()const
-{
-	return tag_;
+ */
+
+#include <alibabacloud/ons/model/OnsInstanceInServiceListRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsInstanceInServiceListRequest;
+
+OnsInstanceInServiceListRequest::OnsInstanceInServiceListRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsInstanceInServiceList") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsInstanceInServiceListRequest::~OnsInstanceInServiceListRequest() {}
+
+std::string OnsInstanceInServiceListRequest::getUserId() const {
+  return userId_;
+}
+
+void OnsInstanceInServiceListRequest::setUserId(const std::string &userId) {
+  userId_ = userId;
+  setParameter(std::string("UserId"), userId);
+}
+
+std::vector<OnsInstanceInServiceListRequest::Tag> OnsInstanceInServiceListRequest::getTag() const {
+  return tag_;
 }
 
-void OnsInstanceInServiceListRequest::setTag(const std::vector<Tag>& tag)
-{
-	tag_ = tag;
-	for(int dep1 = 0; dep1!= tag.size(); dep1++) {
-		auto tagObj = tag.at(dep1);
-		std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
-		setParameter(tagObjStr + ".Value", tagObj.value);
-		setParameter(tagObjStr + ".Key", tagObj.key);
-	}
+void OnsInstanceInServiceListRequest::setTag(const std::vector<OnsInstanceInServiceListRequest::Tag> &tag) {
+  tag_ = tag;
+  for(int dep1 = 0; dep1 != tag.size(); dep1++) {
+  auto tagObj = tag.at(dep1);
+  std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
+    setParameter(tagObjStr + ".Value", tagObj.value);
+    setParameter(tagObjStr + ".Key", tagObj.key);
+  }
 }
 

+ 31 - 39
ons/src/model/OnsInstanceUpdateRequest.cc

@@ -1,62 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsInstanceUpdateRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsInstanceUpdateRequest;
-
-OnsInstanceUpdateRequest::OnsInstanceUpdateRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsInstanceUpdate")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsInstanceUpdateRequest::~OnsInstanceUpdateRequest()
-{}
-
-std::string OnsInstanceUpdateRequest::getRemark()const
-{
-	return remark_;
+ */
+
+#include <alibabacloud/ons/model/OnsInstanceUpdateRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsInstanceUpdateRequest;
+
+OnsInstanceUpdateRequest::OnsInstanceUpdateRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsInstanceUpdate") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsInstanceUpdateRequest::~OnsInstanceUpdateRequest() {}
+
+std::string OnsInstanceUpdateRequest::getRemark() const {
+  return remark_;
 }
 
-void OnsInstanceUpdateRequest::setRemark(const std::string& remark)
-{
-	remark_ = remark;
-	setParameter("Remark", remark);
+void OnsInstanceUpdateRequest::setRemark(const std::string &remark) {
+  remark_ = remark;
+  setParameter(std::string("Remark"), remark);
 }
 
-std::string OnsInstanceUpdateRequest::getInstanceName()const
-{
-	return instanceName_;
+std::string OnsInstanceUpdateRequest::getInstanceName() const {
+  return instanceName_;
 }
 
-void OnsInstanceUpdateRequest::setInstanceName(const std::string& instanceName)
-{
-	instanceName_ = instanceName;
-	setParameter("InstanceName", instanceName);
+void OnsInstanceUpdateRequest::setInstanceName(const std::string &instanceName) {
+  instanceName_ = instanceName;
+  setParameter(std::string("InstanceName"), instanceName);
 }
 
-std::string OnsInstanceUpdateRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsInstanceUpdateRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsInstanceUpdateRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsInstanceUpdateRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 

+ 31 - 39
ons/src/model/OnsMessageGetByKeyRequest.cc

@@ -1,62 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsMessageGetByKeyRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsMessageGetByKeyRequest;
-
-OnsMessageGetByKeyRequest::OnsMessageGetByKeyRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByKey")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsMessageGetByKeyRequest::~OnsMessageGetByKeyRequest()
-{}
-
-std::string OnsMessageGetByKeyRequest::getInstanceId()const
-{
-	return instanceId_;
+ */
+
+#include <alibabacloud/ons/model/OnsMessageGetByKeyRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsMessageGetByKeyRequest;
+
+OnsMessageGetByKeyRequest::OnsMessageGetByKeyRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByKey") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsMessageGetByKeyRequest::~OnsMessageGetByKeyRequest() {}
+
+std::string OnsMessageGetByKeyRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsMessageGetByKeyRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsMessageGetByKeyRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsMessageGetByKeyRequest::getTopic()const
-{
-	return topic_;
+std::string OnsMessageGetByKeyRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsMessageGetByKeyRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsMessageGetByKeyRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 
-std::string OnsMessageGetByKeyRequest::getKey()const
-{
-	return key_;
+std::string OnsMessageGetByKeyRequest::getKey() const {
+  return key_;
 }
 
-void OnsMessageGetByKeyRequest::setKey(const std::string& key)
-{
-	key_ = key;
-	setParameter("Key", key);
+void OnsMessageGetByKeyRequest::setKey(const std::string &key) {
+  key_ = key;
+  setParameter(std::string("Key"), key);
 }
 

+ 31 - 39
ons/src/model/OnsMessageGetByMsgIdRequest.cc

@@ -1,62 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsMessageGetByMsgIdRequest;
-
-OnsMessageGetByMsgIdRequest::OnsMessageGetByMsgIdRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByMsgId")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsMessageGetByMsgIdRequest::~OnsMessageGetByMsgIdRequest()
-{}
-
-std::string OnsMessageGetByMsgIdRequest::getMsgId()const
-{
-	return msgId_;
+ */
+
+#include <alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsMessageGetByMsgIdRequest;
+
+OnsMessageGetByMsgIdRequest::OnsMessageGetByMsgIdRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByMsgId") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsMessageGetByMsgIdRequest::~OnsMessageGetByMsgIdRequest() {}
+
+std::string OnsMessageGetByMsgIdRequest::getMsgId() const {
+  return msgId_;
 }
 
-void OnsMessageGetByMsgIdRequest::setMsgId(const std::string& msgId)
-{
-	msgId_ = msgId;
-	setParameter("MsgId", msgId);
+void OnsMessageGetByMsgIdRequest::setMsgId(const std::string &msgId) {
+  msgId_ = msgId;
+  setParameter(std::string("MsgId"), msgId);
 }
 
-std::string OnsMessageGetByMsgIdRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsMessageGetByMsgIdRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsMessageGetByMsgIdRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsMessageGetByMsgIdRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsMessageGetByMsgIdRequest::getTopic()const
-{
-	return topic_;
+std::string OnsMessageGetByMsgIdRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsMessageGetByMsgIdRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsMessageGetByMsgIdRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 

+ 51 - 67
ons/src/model/OnsMessagePageQueryByTopicRequest.cc

@@ -1,106 +1,90 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsMessagePageQueryByTopicRequest;
-
-OnsMessagePageQueryByTopicRequest::OnsMessagePageQueryByTopicRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsMessagePageQueryByTopic")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsMessagePageQueryByTopicRequest::~OnsMessagePageQueryByTopicRequest()
-{}
-
-long OnsMessagePageQueryByTopicRequest::getEndTime()const
-{
-	return endTime_;
+ */
+
+#include <alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsMessagePageQueryByTopicRequest;
+
+OnsMessagePageQueryByTopicRequest::OnsMessagePageQueryByTopicRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsMessagePageQueryByTopic") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsMessagePageQueryByTopicRequest::~OnsMessagePageQueryByTopicRequest() {}
+
+long OnsMessagePageQueryByTopicRequest::getEndTime() const {
+  return endTime_;
 }
 
-void OnsMessagePageQueryByTopicRequest::setEndTime(long endTime)
-{
-	endTime_ = endTime;
-	setParameter("EndTime", std::to_string(endTime));
+void OnsMessagePageQueryByTopicRequest::setEndTime(long endTime) {
+  endTime_ = endTime;
+  setParameter(std::string("EndTime"), std::to_string(endTime));
 }
 
-long OnsMessagePageQueryByTopicRequest::getBeginTime()const
-{
-	return beginTime_;
+long OnsMessagePageQueryByTopicRequest::getBeginTime() const {
+  return beginTime_;
 }
 
-void OnsMessagePageQueryByTopicRequest::setBeginTime(long beginTime)
-{
-	beginTime_ = beginTime;
-	setParameter("BeginTime", std::to_string(beginTime));
+void OnsMessagePageQueryByTopicRequest::setBeginTime(long beginTime) {
+  beginTime_ = beginTime;
+  setParameter(std::string("BeginTime"), std::to_string(beginTime));
 }
 
-int OnsMessagePageQueryByTopicRequest::getCurrentPage()const
-{
-	return currentPage_;
+int OnsMessagePageQueryByTopicRequest::getCurrentPage() const {
+  return currentPage_;
 }
 
-void OnsMessagePageQueryByTopicRequest::setCurrentPage(int currentPage)
-{
-	currentPage_ = currentPage;
-	setParameter("CurrentPage", std::to_string(currentPage));
+void OnsMessagePageQueryByTopicRequest::setCurrentPage(int currentPage) {
+  currentPage_ = currentPage;
+  setParameter(std::string("CurrentPage"), std::to_string(currentPage));
 }
 
-std::string OnsMessagePageQueryByTopicRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsMessagePageQueryByTopicRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsMessagePageQueryByTopicRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsMessagePageQueryByTopicRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-int OnsMessagePageQueryByTopicRequest::getPageSize()const
-{
-	return pageSize_;
+int OnsMessagePageQueryByTopicRequest::getPageSize() const {
+  return pageSize_;
 }
 
-void OnsMessagePageQueryByTopicRequest::setPageSize(int pageSize)
-{
-	pageSize_ = pageSize;
-	setParameter("PageSize", std::to_string(pageSize));
+void OnsMessagePageQueryByTopicRequest::setPageSize(int pageSize) {
+  pageSize_ = pageSize;
+  setParameter(std::string("PageSize"), std::to_string(pageSize));
 }
 
-std::string OnsMessagePageQueryByTopicRequest::getTopic()const
-{
-	return topic_;
+std::string OnsMessagePageQueryByTopicRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsMessagePageQueryByTopicRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsMessagePageQueryByTopicRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 
-std::string OnsMessagePageQueryByTopicRequest::getTaskId()const
-{
-	return taskId_;
+std::string OnsMessagePageQueryByTopicRequest::getTaskId() const {
+  return taskId_;
 }
 
-void OnsMessagePageQueryByTopicRequest::setTaskId(const std::string& taskId)
-{
-	taskId_ = taskId;
-	setParameter("TaskId", taskId);
+void OnsMessagePageQueryByTopicRequest::setTaskId(const std::string &taskId) {
+  taskId_ = taskId;
+  setParameter(std::string("TaskId"), taskId);
 }
 

+ 41 - 53
ons/src/model/OnsMessagePushRequest.cc

@@ -1,84 +1,72 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsMessagePushRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsMessagePushRequest;
-
-OnsMessagePushRequest::OnsMessagePushRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsMessagePush")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsMessagePushRequest::~OnsMessagePushRequest()
-{}
-
-std::string OnsMessagePushRequest::getClientId()const
-{
-	return clientId_;
+ */
+
+#include <alibabacloud/ons/model/OnsMessagePushRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsMessagePushRequest;
+
+OnsMessagePushRequest::OnsMessagePushRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsMessagePush") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsMessagePushRequest::~OnsMessagePushRequest() {}
+
+std::string OnsMessagePushRequest::getClientId() const {
+  return clientId_;
 }
 
-void OnsMessagePushRequest::setClientId(const std::string& clientId)
-{
-	clientId_ = clientId;
-	setParameter("ClientId", clientId);
+void OnsMessagePushRequest::setClientId(const std::string &clientId) {
+  clientId_ = clientId;
+  setParameter(std::string("ClientId"), clientId);
 }
 
-std::string OnsMessagePushRequest::getGroupId()const
-{
-	return groupId_;
+std::string OnsMessagePushRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsMessagePushRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsMessagePushRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string OnsMessagePushRequest::getMsgId()const
-{
-	return msgId_;
+std::string OnsMessagePushRequest::getMsgId() const {
+  return msgId_;
 }
 
-void OnsMessagePushRequest::setMsgId(const std::string& msgId)
-{
-	msgId_ = msgId;
-	setParameter("MsgId", msgId);
+void OnsMessagePushRequest::setMsgId(const std::string &msgId) {
+  msgId_ = msgId;
+  setParameter(std::string("MsgId"), msgId);
 }
 
-std::string OnsMessagePushRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsMessagePushRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsMessagePushRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsMessagePushRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsMessagePushRequest::getTopic()const
-{
-	return topic_;
+std::string OnsMessagePushRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsMessagePushRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsMessagePushRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 

+ 31 - 39
ons/src/model/OnsMessageTraceRequest.cc

@@ -1,62 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsMessageTraceRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsMessageTraceRequest;
-
-OnsMessageTraceRequest::OnsMessageTraceRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsMessageTrace")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsMessageTraceRequest::~OnsMessageTraceRequest()
-{}
-
-std::string OnsMessageTraceRequest::getMsgId()const
-{
-	return msgId_;
+ */
+
+#include <alibabacloud/ons/model/OnsMessageTraceRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsMessageTraceRequest;
+
+OnsMessageTraceRequest::OnsMessageTraceRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsMessageTrace") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsMessageTraceRequest::~OnsMessageTraceRequest() {}
+
+std::string OnsMessageTraceRequest::getMsgId() const {
+  return msgId_;
 }
 
-void OnsMessageTraceRequest::setMsgId(const std::string& msgId)
-{
-	msgId_ = msgId;
-	setParameter("MsgId", msgId);
+void OnsMessageTraceRequest::setMsgId(const std::string &msgId) {
+  msgId_ = msgId;
+  setParameter(std::string("MsgId"), msgId);
 }
 
-std::string OnsMessageTraceRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsMessageTraceRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsMessageTraceRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsMessageTraceRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsMessageTraceRequest::getTopic()const
-{
-	return topic_;
+std::string OnsMessageTraceRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsMessageTraceRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsMessageTraceRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 

+ 16 - 18
ons/src/model/OnsRegionListRequest.cc

@@ -1,29 +1,27 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsRegionListRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsRegionListRequest;
-
-OnsRegionListRequest::OnsRegionListRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsRegionList")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsRegionListRequest::~OnsRegionListRequest()
-{}
-
+ */
+
+#include <alibabacloud/ons/model/OnsRegionListRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsRegionListRequest;
+
+OnsRegionListRequest::OnsRegionListRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsRegionList") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsRegionListRequest::~OnsRegionListRequest() {}
+

+ 8 - 8
ons/src/model/OnsRegionListResult.cc

@@ -43,20 +43,20 @@ void OnsRegionListResult::parse(const std::string &payload)
 	for (auto valueDataRegionDo : allDataNode)
 	{
 		RegionDo dataObject;
-		if(!valueDataRegionDo["Id"].isNull())
-			dataObject.id = std::stol(valueDataRegionDo["Id"].asString());
-		if(!valueDataRegionDo["OnsRegionId"].isNull())
-			dataObject.onsRegionId = valueDataRegionDo["OnsRegionId"].asString();
+		if(!valueDataRegionDo["UpdateTime"].isNull())
+			dataObject.updateTime = std::stol(valueDataRegionDo["UpdateTime"].asString());
 		if(!valueDataRegionDo["RegionName"].isNull())
 			dataObject.regionName = valueDataRegionDo["RegionName"].asString();
-		if(!valueDataRegionDo["ChannelId"].isNull())
-			dataObject.channelId = std::stoi(valueDataRegionDo["ChannelId"].asString());
 		if(!valueDataRegionDo["ChannelName"].isNull())
 			dataObject.channelName = valueDataRegionDo["ChannelName"].asString();
 		if(!valueDataRegionDo["CreateTime"].isNull())
 			dataObject.createTime = std::stol(valueDataRegionDo["CreateTime"].asString());
-		if(!valueDataRegionDo["UpdateTime"].isNull())
-			dataObject.updateTime = std::stol(valueDataRegionDo["UpdateTime"].asString());
+		if(!valueDataRegionDo["ChannelId"].isNull())
+			dataObject.channelId = std::stoi(valueDataRegionDo["ChannelId"].asString());
+		if(!valueDataRegionDo["Id"].isNull())
+			dataObject.id = std::stol(valueDataRegionDo["Id"].asString());
+		if(!valueDataRegionDo["OnsRegionId"].isNull())
+			dataObject.onsRegionId = valueDataRegionDo["OnsRegionId"].asString();
 		data_.push_back(dataObject);
 	}
 	if(!value["HelpUrl"].isNull())

+ 36 - 46
ons/src/model/OnsTopicCreateRequest.cc

@@ -1,73 +1,63 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsTopicCreateRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsTopicCreateRequest;
-
-OnsTopicCreateRequest::OnsTopicCreateRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsTopicCreate")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsTopicCreateRequest::~OnsTopicCreateRequest()
-{}
-
-int OnsTopicCreateRequest::getMessageType()const
-{
-	return messageType_;
+ */
+
+#include <alibabacloud/ons/model/OnsTopicCreateRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsTopicCreateRequest;
+
+OnsTopicCreateRequest::OnsTopicCreateRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsTopicCreate") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsTopicCreateRequest::~OnsTopicCreateRequest() {}
+
+int OnsTopicCreateRequest::getMessageType() const {
+  return messageType_;
 }
 
-void OnsTopicCreateRequest::setMessageType(int messageType)
-{
-	messageType_ = messageType;
-	setParameter("MessageType", std::to_string(messageType));
+void OnsTopicCreateRequest::setMessageType(int messageType) {
+  messageType_ = messageType;
+  setParameter(std::string("MessageType"), std::to_string(messageType));
 }
 
-std::string OnsTopicCreateRequest::getRemark()const
-{
-	return remark_;
+std::string OnsTopicCreateRequest::getRemark() const {
+  return remark_;
 }
 
-void OnsTopicCreateRequest::setRemark(const std::string& remark)
-{
-	remark_ = remark;
-	setParameter("Remark", remark);
+void OnsTopicCreateRequest::setRemark(const std::string &remark) {
+  remark_ = remark;
+  setParameter(std::string("Remark"), remark);
 }
 
-std::string OnsTopicCreateRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsTopicCreateRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsTopicCreateRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsTopicCreateRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsTopicCreateRequest::getTopic()const
-{
-	return topic_;
+std::string OnsTopicCreateRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsTopicCreateRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsTopicCreateRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 

+ 26 - 32
ons/src/model/OnsTopicDeleteRequest.cc

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

+ 45 - 44
ons/src/model/OnsTopicListRequest.cc

@@ -1,67 +1,68 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsTopicListRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsTopicListRequest;
-
-OnsTopicListRequest::OnsTopicListRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsTopicList")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsTopicListRequest::~OnsTopicListRequest()
-{}
-
-std::string OnsTopicListRequest::getInstanceId()const
-{
-	return instanceId_;
+ */
+
+#include <alibabacloud/ons/model/OnsTopicListRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsTopicListRequest;
+
+OnsTopicListRequest::OnsTopicListRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsTopicList") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsTopicListRequest::~OnsTopicListRequest() {}
+
+std::string OnsTopicListRequest::getUserId() const {
+  return userId_;
+}
+
+void OnsTopicListRequest::setUserId(const std::string &userId) {
+  userId_ = userId;
+  setParameter(std::string("UserId"), userId);
+}
+
+std::string OnsTopicListRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsTopicListRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsTopicListRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsTopicListRequest::getTopic()const
-{
-	return topic_;
+std::string OnsTopicListRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsTopicListRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsTopicListRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 
-std::vector<OnsTopicListRequest::Tag> OnsTopicListRequest::getTag()const
-{
-	return tag_;
+std::vector<OnsTopicListRequest::Tag> OnsTopicListRequest::getTag() const {
+  return tag_;
 }
 
-void OnsTopicListRequest::setTag(const std::vector<Tag>& tag)
-{
-	tag_ = tag;
-	for(int dep1 = 0; dep1!= tag.size(); dep1++) {
-		auto tagObj = tag.at(dep1);
-		std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
-		setParameter(tagObjStr + ".Value", tagObj.value);
-		setParameter(tagObjStr + ".Key", tagObj.key);
-	}
+void OnsTopicListRequest::setTag(const std::vector<OnsTopicListRequest::Tag> &tag) {
+  tag_ = tag;
+  for(int dep1 = 0; dep1 != tag.size(); dep1++) {
+  auto tagObj = tag.at(dep1);
+  std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
+    setParameter(tagObjStr + ".Value", tagObj.value);
+    setParameter(tagObjStr + ".Key", tagObj.key);
+  }
 }
 

+ 26 - 32
ons/src/model/OnsTopicStatusRequest.cc

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

+ 26 - 32
ons/src/model/OnsTopicSubDetailRequest.cc

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

+ 31 - 39
ons/src/model/OnsTopicUpdateRequest.cc

@@ -1,62 +1,54 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsTopicUpdateRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsTopicUpdateRequest;
-
-OnsTopicUpdateRequest::OnsTopicUpdateRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsTopicUpdate")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsTopicUpdateRequest::~OnsTopicUpdateRequest()
-{}
-
-int OnsTopicUpdateRequest::getPerm()const
-{
-	return perm_;
+ */
+
+#include <alibabacloud/ons/model/OnsTopicUpdateRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsTopicUpdateRequest;
+
+OnsTopicUpdateRequest::OnsTopicUpdateRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsTopicUpdate") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsTopicUpdateRequest::~OnsTopicUpdateRequest() {}
+
+int OnsTopicUpdateRequest::getPerm() const {
+  return perm_;
 }
 
-void OnsTopicUpdateRequest::setPerm(int perm)
-{
-	perm_ = perm;
-	setParameter("Perm", std::to_string(perm));
+void OnsTopicUpdateRequest::setPerm(int perm) {
+  perm_ = perm;
+  setParameter(std::string("Perm"), std::to_string(perm));
 }
 
-std::string OnsTopicUpdateRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsTopicUpdateRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsTopicUpdateRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsTopicUpdateRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsTopicUpdateRequest::getTopic()const
-{
-	return topic_;
+std::string OnsTopicUpdateRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsTopicUpdateRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsTopicUpdateRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 

+ 21 - 25
ons/src/model/OnsTraceGetResultRequest.cc

@@ -1,40 +1,36 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsTraceGetResultRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsTraceGetResultRequest;
-
-OnsTraceGetResultRequest::OnsTraceGetResultRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsTraceGetResult")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsTraceGetResultRequest::~OnsTraceGetResultRequest()
-{}
-
-std::string OnsTraceGetResultRequest::getQueryId()const
-{
-	return queryId_;
+ */
+
+#include <alibabacloud/ons/model/OnsTraceGetResultRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsTraceGetResultRequest;
+
+OnsTraceGetResultRequest::OnsTraceGetResultRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsTraceGetResult") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsTraceGetResultRequest::~OnsTraceGetResultRequest() {}
+
+std::string OnsTraceGetResultRequest::getQueryId() const {
+  return queryId_;
 }
 
-void OnsTraceGetResultRequest::setQueryId(const std::string& queryId)
-{
-	queryId_ = queryId;
-	setParameter("QueryId", queryId);
+void OnsTraceGetResultRequest::setQueryId(const std::string &queryId) {
+  queryId_ = queryId;
+  setParameter(std::string("QueryId"), queryId);
 }
 

+ 41 - 53
ons/src/model/OnsTraceQueryByMsgIdRequest.cc

@@ -1,84 +1,72 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgIdRequest;
-
-OnsTraceQueryByMsgIdRequest::OnsTraceQueryByMsgIdRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgId")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsTraceQueryByMsgIdRequest::~OnsTraceQueryByMsgIdRequest()
-{}
-
-std::string OnsTraceQueryByMsgIdRequest::getMsgId()const
-{
-	return msgId_;
+ */
+
+#include <alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgIdRequest;
+
+OnsTraceQueryByMsgIdRequest::OnsTraceQueryByMsgIdRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgId") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsTraceQueryByMsgIdRequest::~OnsTraceQueryByMsgIdRequest() {}
+
+std::string OnsTraceQueryByMsgIdRequest::getMsgId() const {
+  return msgId_;
 }
 
-void OnsTraceQueryByMsgIdRequest::setMsgId(const std::string& msgId)
-{
-	msgId_ = msgId;
-	setParameter("MsgId", msgId);
+void OnsTraceQueryByMsgIdRequest::setMsgId(const std::string &msgId) {
+  msgId_ = msgId;
+  setParameter(std::string("MsgId"), msgId);
 }
 
-long OnsTraceQueryByMsgIdRequest::getEndTime()const
-{
-	return endTime_;
+long OnsTraceQueryByMsgIdRequest::getEndTime() const {
+  return endTime_;
 }
 
-void OnsTraceQueryByMsgIdRequest::setEndTime(long endTime)
-{
-	endTime_ = endTime;
-	setParameter("EndTime", std::to_string(endTime));
+void OnsTraceQueryByMsgIdRequest::setEndTime(long endTime) {
+  endTime_ = endTime;
+  setParameter(std::string("EndTime"), std::to_string(endTime));
 }
 
-long OnsTraceQueryByMsgIdRequest::getBeginTime()const
-{
-	return beginTime_;
+long OnsTraceQueryByMsgIdRequest::getBeginTime() const {
+  return beginTime_;
 }
 
-void OnsTraceQueryByMsgIdRequest::setBeginTime(long beginTime)
-{
-	beginTime_ = beginTime;
-	setParameter("BeginTime", std::to_string(beginTime));
+void OnsTraceQueryByMsgIdRequest::setBeginTime(long beginTime) {
+  beginTime_ = beginTime;
+  setParameter(std::string("BeginTime"), std::to_string(beginTime));
 }
 
-std::string OnsTraceQueryByMsgIdRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsTraceQueryByMsgIdRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsTraceQueryByMsgIdRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsTraceQueryByMsgIdRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsTraceQueryByMsgIdRequest::getTopic()const
-{
-	return topic_;
+std::string OnsTraceQueryByMsgIdRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsTraceQueryByMsgIdRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsTraceQueryByMsgIdRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 

+ 41 - 53
ons/src/model/OnsTraceQueryByMsgKeyRequest.cc

@@ -1,84 +1,72 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgKeyRequest;
-
-OnsTraceQueryByMsgKeyRequest::OnsTraceQueryByMsgKeyRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgKey")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsTraceQueryByMsgKeyRequest::~OnsTraceQueryByMsgKeyRequest()
-{}
-
-long OnsTraceQueryByMsgKeyRequest::getEndTime()const
-{
-	return endTime_;
+ */
+
+#include <alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgKeyRequest;
+
+OnsTraceQueryByMsgKeyRequest::OnsTraceQueryByMsgKeyRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgKey") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsTraceQueryByMsgKeyRequest::~OnsTraceQueryByMsgKeyRequest() {}
+
+long OnsTraceQueryByMsgKeyRequest::getEndTime() const {
+  return endTime_;
 }
 
-void OnsTraceQueryByMsgKeyRequest::setEndTime(long endTime)
-{
-	endTime_ = endTime;
-	setParameter("EndTime", std::to_string(endTime));
+void OnsTraceQueryByMsgKeyRequest::setEndTime(long endTime) {
+  endTime_ = endTime;
+  setParameter(std::string("EndTime"), std::to_string(endTime));
 }
 
-long OnsTraceQueryByMsgKeyRequest::getBeginTime()const
-{
-	return beginTime_;
+long OnsTraceQueryByMsgKeyRequest::getBeginTime() const {
+  return beginTime_;
 }
 
-void OnsTraceQueryByMsgKeyRequest::setBeginTime(long beginTime)
-{
-	beginTime_ = beginTime;
-	setParameter("BeginTime", std::to_string(beginTime));
+void OnsTraceQueryByMsgKeyRequest::setBeginTime(long beginTime) {
+  beginTime_ = beginTime;
+  setParameter(std::string("BeginTime"), std::to_string(beginTime));
 }
 
-std::string OnsTraceQueryByMsgKeyRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsTraceQueryByMsgKeyRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsTraceQueryByMsgKeyRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsTraceQueryByMsgKeyRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsTraceQueryByMsgKeyRequest::getTopic()const
-{
-	return topic_;
+std::string OnsTraceQueryByMsgKeyRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsTraceQueryByMsgKeyRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsTraceQueryByMsgKeyRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 
-std::string OnsTraceQueryByMsgKeyRequest::getMsgKey()const
-{
-	return msgKey_;
+std::string OnsTraceQueryByMsgKeyRequest::getMsgKey() const {
+  return msgKey_;
 }
 
-void OnsTraceQueryByMsgKeyRequest::setMsgKey(const std::string& msgKey)
-{
-	msgKey_ = msgKey;
-	setParameter("MsgKey", msgKey);
+void OnsTraceQueryByMsgKeyRequest::setMsgKey(const std::string &msgKey) {
+  msgKey_ = msgKey;
+  setParameter(std::string("MsgKey"), msgKey);
 }
 

+ 51 - 67
ons/src/model/OnsTrendGroupOutputTpsRequest.cc

@@ -1,106 +1,90 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsTrendGroupOutputTpsRequest;
-
-OnsTrendGroupOutputTpsRequest::OnsTrendGroupOutputTpsRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsTrendGroupOutputTps")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsTrendGroupOutputTpsRequest::~OnsTrendGroupOutputTpsRequest()
-{}
-
-long OnsTrendGroupOutputTpsRequest::getPeriod()const
-{
-	return period_;
+ */
+
+#include <alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsTrendGroupOutputTpsRequest;
+
+OnsTrendGroupOutputTpsRequest::OnsTrendGroupOutputTpsRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsTrendGroupOutputTps") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsTrendGroupOutputTpsRequest::~OnsTrendGroupOutputTpsRequest() {}
+
+long OnsTrendGroupOutputTpsRequest::getPeriod() const {
+  return period_;
 }
 
-void OnsTrendGroupOutputTpsRequest::setPeriod(long period)
-{
-	period_ = period;
-	setParameter("Period", std::to_string(period));
+void OnsTrendGroupOutputTpsRequest::setPeriod(long period) {
+  period_ = period;
+  setParameter(std::string("Period"), std::to_string(period));
 }
 
-std::string OnsTrendGroupOutputTpsRequest::getGroupId()const
-{
-	return groupId_;
+std::string OnsTrendGroupOutputTpsRequest::getGroupId() const {
+  return groupId_;
 }
 
-void OnsTrendGroupOutputTpsRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void OnsTrendGroupOutputTpsRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-long OnsTrendGroupOutputTpsRequest::getEndTime()const
-{
-	return endTime_;
+long OnsTrendGroupOutputTpsRequest::getEndTime() const {
+  return endTime_;
 }
 
-void OnsTrendGroupOutputTpsRequest::setEndTime(long endTime)
-{
-	endTime_ = endTime;
-	setParameter("EndTime", std::to_string(endTime));
+void OnsTrendGroupOutputTpsRequest::setEndTime(long endTime) {
+  endTime_ = endTime;
+  setParameter(std::string("EndTime"), std::to_string(endTime));
 }
 
-long OnsTrendGroupOutputTpsRequest::getBeginTime()const
-{
-	return beginTime_;
+long OnsTrendGroupOutputTpsRequest::getBeginTime() const {
+  return beginTime_;
 }
 
-void OnsTrendGroupOutputTpsRequest::setBeginTime(long beginTime)
-{
-	beginTime_ = beginTime;
-	setParameter("BeginTime", std::to_string(beginTime));
+void OnsTrendGroupOutputTpsRequest::setBeginTime(long beginTime) {
+  beginTime_ = beginTime;
+  setParameter(std::string("BeginTime"), std::to_string(beginTime));
 }
 
-int OnsTrendGroupOutputTpsRequest::getType()const
-{
-	return type_;
+int OnsTrendGroupOutputTpsRequest::getType() const {
+  return type_;
 }
 
-void OnsTrendGroupOutputTpsRequest::setType(int type)
-{
-	type_ = type;
-	setParameter("Type", std::to_string(type));
+void OnsTrendGroupOutputTpsRequest::setType(int type) {
+  type_ = type;
+  setParameter(std::string("Type"), std::to_string(type));
 }
 
-std::string OnsTrendGroupOutputTpsRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsTrendGroupOutputTpsRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsTrendGroupOutputTpsRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsTrendGroupOutputTpsRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsTrendGroupOutputTpsRequest::getTopic()const
-{
-	return topic_;
+std::string OnsTrendGroupOutputTpsRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsTrendGroupOutputTpsRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsTrendGroupOutputTpsRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 

+ 46 - 60
ons/src/model/OnsTrendTopicInputTpsRequest.cc

@@ -1,95 +1,81 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsTrendTopicInputTpsRequest;
-
-OnsTrendTopicInputTpsRequest::OnsTrendTopicInputTpsRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsTrendTopicInputTps")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsTrendTopicInputTpsRequest::~OnsTrendTopicInputTpsRequest()
-{}
-
-long OnsTrendTopicInputTpsRequest::getPeriod()const
-{
-	return period_;
+ */
+
+#include <alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h>
+
+using AlibabaCloud::Ons::Model::OnsTrendTopicInputTpsRequest;
+
+OnsTrendTopicInputTpsRequest::OnsTrendTopicInputTpsRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OnsTrendTopicInputTps") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OnsTrendTopicInputTpsRequest::~OnsTrendTopicInputTpsRequest() {}
+
+long OnsTrendTopicInputTpsRequest::getPeriod() const {
+  return period_;
 }
 
-void OnsTrendTopicInputTpsRequest::setPeriod(long period)
-{
-	period_ = period;
-	setParameter("Period", std::to_string(period));
+void OnsTrendTopicInputTpsRequest::setPeriod(long period) {
+  period_ = period;
+  setParameter(std::string("Period"), std::to_string(period));
 }
 
-long OnsTrendTopicInputTpsRequest::getEndTime()const
-{
-	return endTime_;
+long OnsTrendTopicInputTpsRequest::getEndTime() const {
+  return endTime_;
 }
 
-void OnsTrendTopicInputTpsRequest::setEndTime(long endTime)
-{
-	endTime_ = endTime;
-	setParameter("EndTime", std::to_string(endTime));
+void OnsTrendTopicInputTpsRequest::setEndTime(long endTime) {
+  endTime_ = endTime;
+  setParameter(std::string("EndTime"), std::to_string(endTime));
 }
 
-long OnsTrendTopicInputTpsRequest::getBeginTime()const
-{
-	return beginTime_;
+long OnsTrendTopicInputTpsRequest::getBeginTime() const {
+  return beginTime_;
 }
 
-void OnsTrendTopicInputTpsRequest::setBeginTime(long beginTime)
-{
-	beginTime_ = beginTime;
-	setParameter("BeginTime", std::to_string(beginTime));
+void OnsTrendTopicInputTpsRequest::setBeginTime(long beginTime) {
+  beginTime_ = beginTime;
+  setParameter(std::string("BeginTime"), std::to_string(beginTime));
 }
 
-int OnsTrendTopicInputTpsRequest::getType()const
-{
-	return type_;
+int OnsTrendTopicInputTpsRequest::getType() const {
+  return type_;
 }
 
-void OnsTrendTopicInputTpsRequest::setType(int type)
-{
-	type_ = type;
-	setParameter("Type", std::to_string(type));
+void OnsTrendTopicInputTpsRequest::setType(int type) {
+  type_ = type;
+  setParameter(std::string("Type"), std::to_string(type));
 }
 
-std::string OnsTrendTopicInputTpsRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string OnsTrendTopicInputTpsRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void OnsTrendTopicInputTpsRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void OnsTrendTopicInputTpsRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::string OnsTrendTopicInputTpsRequest::getTopic()const
-{
-	return topic_;
+std::string OnsTrendTopicInputTpsRequest::getTopic() const {
+  return topic_;
 }
 
-void OnsTrendTopicInputTpsRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
+void OnsTrendTopicInputTpsRequest::setTopic(const std::string &topic) {
+  topic_ = topic;
+  setParameter(std::string("Topic"), topic);
 }
 

+ 0 - 128
ons/src/model/OnsWarnCreateRequest.cc

@@ -1,128 +0,0 @@
-/*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OnsWarnCreateRequest.h>
-
-using AlibabaCloud::Ons::Model::OnsWarnCreateRequest;
-
-OnsWarnCreateRequest::OnsWarnCreateRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OnsWarnCreate")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OnsWarnCreateRequest::~OnsWarnCreateRequest()
-{}
-
-std::string OnsWarnCreateRequest::getLevel()const
-{
-	return level_;
-}
-
-void OnsWarnCreateRequest::setLevel(const std::string& level)
-{
-	level_ = level;
-	setParameter("Level", level);
-}
-
-std::string OnsWarnCreateRequest::getGroupId()const
-{
-	return groupId_;
-}
-
-void OnsWarnCreateRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
-}
-
-std::string OnsWarnCreateRequest::getDelayTime()const
-{
-	return delayTime_;
-}
-
-void OnsWarnCreateRequest::setDelayTime(const std::string& delayTime)
-{
-	delayTime_ = delayTime;
-	setParameter("DelayTime", delayTime);
-}
-
-std::string OnsWarnCreateRequest::getThreshold()const
-{
-	return threshold_;
-}
-
-void OnsWarnCreateRequest::setThreshold(const std::string& threshold)
-{
-	threshold_ = threshold;
-	setParameter("Threshold", threshold);
-}
-
-std::string OnsWarnCreateRequest::getAlertTime()const
-{
-	return alertTime_;
-}
-
-void OnsWarnCreateRequest::setAlertTime(const std::string& alertTime)
-{
-	alertTime_ = alertTime;
-	setParameter("AlertTime", alertTime);
-}
-
-std::string OnsWarnCreateRequest::getInstanceId()const
-{
-	return instanceId_;
-}
-
-void OnsWarnCreateRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
-}
-
-std::string OnsWarnCreateRequest::getBlockTime()const
-{
-	return blockTime_;
-}
-
-void OnsWarnCreateRequest::setBlockTime(const std::string& blockTime)
-{
-	blockTime_ = blockTime;
-	setParameter("BlockTime", blockTime);
-}
-
-std::string OnsWarnCreateRequest::getTopic()const
-{
-	return topic_;
-}
-
-void OnsWarnCreateRequest::setTopic(const std::string& topic)
-{
-	topic_ = topic;
-	setParameter("Topic", topic);
-}
-
-std::string OnsWarnCreateRequest::getContacts()const
-{
-	return contacts_;
-}
-
-void OnsWarnCreateRequest::setContacts(const std::string& contacts)
-{
-	contacts_ = contacts;
-	setParameter("Contacts", contacts);
-}
-

+ 0 - 51
ons/src/model/OnsWarnCreateResult.cc

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

+ 0 - 62
ons/src/model/OnsWarnDeleteRequest.cc

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

+ 0 - 51
ons/src/model/OnsWarnDeleteResult.cc

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

+ 16 - 18
ons/src/model/OpenOnsServiceRequest.cc

@@ -1,29 +1,27 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/OpenOnsServiceRequest.h>
-
-using AlibabaCloud::Ons::Model::OpenOnsServiceRequest;
-
-OpenOnsServiceRequest::OpenOnsServiceRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "OpenOnsService")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-OpenOnsServiceRequest::~OpenOnsServiceRequest()
-{}
-
+ */
+
+#include <alibabacloud/ons/model/OpenOnsServiceRequest.h>
+
+using AlibabaCloud::Ons::Model::OpenOnsServiceRequest;
+
+OpenOnsServiceRequest::OpenOnsServiceRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "OpenOnsService") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+OpenOnsServiceRequest::~OpenOnsServiceRequest() {}
+

+ 40 - 53
ons/src/model/TagResourcesRequest.cc

@@ -1,80 +1,67 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/TagResourcesRequest.h>
-
-using AlibabaCloud::Ons::Model::TagResourcesRequest;
-
-TagResourcesRequest::TagResourcesRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "TagResources")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-TagResourcesRequest::~TagResourcesRequest()
-{}
-
-std::vector<std::string> TagResourcesRequest::getResourceId()const
-{
-	return resourceId_;
+ */
+
+#include <alibabacloud/ons/model/TagResourcesRequest.h>
+
+using AlibabaCloud::Ons::Model::TagResourcesRequest;
+
+TagResourcesRequest::TagResourcesRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "TagResources") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+TagResourcesRequest::~TagResourcesRequest() {}
+
+std::vector<std::string> TagResourcesRequest::getResourceId() const {
+  return resourceId_;
 }
 
-void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
-{
-	resourceId_ = resourceId;
-	for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
-		setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
-	}
+void TagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
+  resourceId_ = resourceId;
 }
 
-std::string TagResourcesRequest::getResourceType()const
-{
-	return resourceType_;
+std::string TagResourcesRequest::getResourceType() const {
+  return resourceType_;
 }
 
-void TagResourcesRequest::setResourceType(const std::string& resourceType)
-{
-	resourceType_ = resourceType;
-	setParameter("ResourceType", resourceType);
+void TagResourcesRequest::setResourceType(const std::string &resourceType) {
+  resourceType_ = resourceType;
+  setParameter(std::string("ResourceType"), resourceType);
 }
 
-std::string TagResourcesRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string TagResourcesRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void TagResourcesRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void TagResourcesRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
-{
-	return tag_;
+std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag() const {
+  return tag_;
 }
 
-void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
-{
-	tag_ = tag;
-	for(int dep1 = 0; dep1!= tag.size(); dep1++) {
-		auto tagObj = tag.at(dep1);
-		std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
-		setParameter(tagObjStr + ".Value", tagObj.value);
-		setParameter(tagObjStr + ".Key", tagObj.key);
-	}
+void TagResourcesRequest::setTag(const std::vector<TagResourcesRequest::Tag> &tag) {
+  tag_ = tag;
+  for(int dep1 = 0; dep1 != tag.size(); dep1++) {
+  auto tagObj = tag.at(dep1);
+  std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
+    setParameter(tagObjStr + ".Value", tagObj.value);
+    setParameter(tagObjStr + ".Key", tagObj.key);
+  }
 }
 

+ 39 - 57
ons/src/model/UntagResourcesRequest.cc

@@ -1,88 +1,70 @@
 /*
  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
-#include <alibabacloud/ons/model/UntagResourcesRequest.h>
-
-using AlibabaCloud::Ons::Model::UntagResourcesRequest;
-
-UntagResourcesRequest::UntagResourcesRequest() :
-	RpcServiceRequest("ons", "2019-02-14", "UntagResources")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-UntagResourcesRequest::~UntagResourcesRequest()
-{}
-
-bool UntagResourcesRequest::getAll()const
-{
-	return all_;
+ */
+
+#include <alibabacloud/ons/model/UntagResourcesRequest.h>
+
+using AlibabaCloud::Ons::Model::UntagResourcesRequest;
+
+UntagResourcesRequest::UntagResourcesRequest()
+    : RpcServiceRequest("ons", "2019-02-14", "UntagResources") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+UntagResourcesRequest::~UntagResourcesRequest() {}
+
+bool UntagResourcesRequest::getAll() const {
+  return all_;
 }
 
-void UntagResourcesRequest::setAll(bool all)
-{
-	all_ = all;
-	setParameter("All", all ? "true" : "false");
+void UntagResourcesRequest::setAll(bool all) {
+  all_ = all;
+  setParameter(std::string("All"), all ? "true" : "false");
 }
 
-std::vector<std::string> UntagResourcesRequest::getResourceId()const
-{
-	return resourceId_;
+std::vector<std::string> UntagResourcesRequest::getResourceId() const {
+  return resourceId_;
 }
 
-void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
-{
-	resourceId_ = resourceId;
-	for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
-		setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
-	}
+void UntagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
+  resourceId_ = resourceId;
 }
 
-std::string UntagResourcesRequest::getResourceType()const
-{
-	return resourceType_;
+std::string UntagResourcesRequest::getResourceType() const {
+  return resourceType_;
 }
 
-void UntagResourcesRequest::setResourceType(const std::string& resourceType)
-{
-	resourceType_ = resourceType;
-	setParameter("ResourceType", resourceType);
+void UntagResourcesRequest::setResourceType(const std::string &resourceType) {
+  resourceType_ = resourceType;
+  setParameter(std::string("ResourceType"), resourceType);
 }
 
-std::string UntagResourcesRequest::getInstanceId()const
-{
-	return instanceId_;
+std::string UntagResourcesRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void UntagResourcesRequest::setInstanceId(const std::string& instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", instanceId);
+void UntagResourcesRequest::setInstanceId(const std::string &instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), instanceId);
 }
 
-std::vector<std::string> UntagResourcesRequest::getTagKey()const
-{
-	return tagKey_;
+std::vector<std::string> UntagResourcesRequest::getTagKey() const {
+  return tagKey_;
 }
 
-void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
-{
-	tagKey_ = tagKey;
-	for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
-		setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
-	}
+void UntagResourcesRequest::setTagKey(const std::vector<std::string> &tagKey) {
+  tagKey_ = tagKey;
 }