Procházet zdrojové kódy

Add Api ResetDeviceTimeline.

sdk-team před 3 roky
rodič
revize
7eb4574903

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1767
+1.36.1768

+ 8 - 0
iot/CMakeLists.txt

@@ -631,6 +631,8 @@ set(iot_public_header_model
 	include/alibabacloud/iot/model/QuerySceneRuleResult.h
 	include/alibabacloud/iot/model/QuerySchedulePeriodListRequest.h
 	include/alibabacloud/iot/model/QuerySchedulePeriodListResult.h
+	include/alibabacloud/iot/model/QueryShareProductNameByProductKeyRequest.h
+	include/alibabacloud/iot/model/QueryShareProductNameByProductKeyResult.h
 	include/alibabacloud/iot/model/QuerySharePromotionActivityAuditResultRequest.h
 	include/alibabacloud/iot/model/QuerySharePromotionActivityAuditResultResult.h
 	include/alibabacloud/iot/model/QueryShareTaskDeviceListRequest.h
@@ -721,6 +723,8 @@ set(iot_public_header_model
 	include/alibabacloud/iot/model/RerunJobResult.h
 	include/alibabacloud/iot/model/ResetConsumerGroupPositionRequest.h
 	include/alibabacloud/iot/model/ResetConsumerGroupPositionResult.h
+	include/alibabacloud/iot/model/ResetDeviceTimelineRequest.h
+	include/alibabacloud/iot/model/ResetDeviceTimelineResult.h
 	include/alibabacloud/iot/model/ResetThingRequest.h
 	include/alibabacloud/iot/model/ResetThingResult.h
 	include/alibabacloud/iot/model/RetrySoundCodeLabelBatchRequest.h
@@ -1454,6 +1458,8 @@ set(iot_src
 	src/model/QuerySceneRuleResult.cc
 	src/model/QuerySchedulePeriodListRequest.cc
 	src/model/QuerySchedulePeriodListResult.cc
+	src/model/QueryShareProductNameByProductKeyRequest.cc
+	src/model/QueryShareProductNameByProductKeyResult.cc
 	src/model/QuerySharePromotionActivityAuditResultRequest.cc
 	src/model/QuerySharePromotionActivityAuditResultResult.cc
 	src/model/QueryShareTaskDeviceListRequest.cc
@@ -1544,6 +1550,8 @@ set(iot_src
 	src/model/RerunJobResult.cc
 	src/model/ResetConsumerGroupPositionRequest.cc
 	src/model/ResetConsumerGroupPositionResult.cc
+	src/model/ResetDeviceTimelineRequest.cc
+	src/model/ResetDeviceTimelineResult.cc
 	src/model/ResetThingRequest.cc
 	src/model/ResetThingResult.cc
 	src/model/RetrySoundCodeLabelBatchRequest.cc

+ 16 - 0
iot/include/alibabacloud/iot/IotClient.h

@@ -632,6 +632,8 @@
 #include "model/QuerySceneRuleResult.h"
 #include "model/QuerySchedulePeriodListRequest.h"
 #include "model/QuerySchedulePeriodListResult.h"
+#include "model/QueryShareProductNameByProductKeyRequest.h"
+#include "model/QueryShareProductNameByProductKeyResult.h"
 #include "model/QuerySharePromotionActivityAuditResultRequest.h"
 #include "model/QuerySharePromotionActivityAuditResultResult.h"
 #include "model/QueryShareTaskDeviceListRequest.h"
@@ -722,6 +724,8 @@
 #include "model/RerunJobResult.h"
 #include "model/ResetConsumerGroupPositionRequest.h"
 #include "model/ResetConsumerGroupPositionResult.h"
+#include "model/ResetDeviceTimelineRequest.h"
+#include "model/ResetDeviceTimelineResult.h"
 #include "model/ResetThingRequest.h"
 #include "model/ResetThingResult.h"
 #include "model/RetrySoundCodeLabelBatchRequest.h"
@@ -1766,6 +1770,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::QuerySchedulePeriodListResult> QuerySchedulePeriodListOutcome;
 			typedef std::future<QuerySchedulePeriodListOutcome> QuerySchedulePeriodListOutcomeCallable;
 			typedef std::function<void(const IotClient*, const Model::QuerySchedulePeriodListRequest&, const QuerySchedulePeriodListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySchedulePeriodListAsyncHandler;
+			typedef Outcome<Error, Model::QueryShareProductNameByProductKeyResult> QueryShareProductNameByProductKeyOutcome;
+			typedef std::future<QueryShareProductNameByProductKeyOutcome> QueryShareProductNameByProductKeyOutcomeCallable;
+			typedef std::function<void(const IotClient*, const Model::QueryShareProductNameByProductKeyRequest&, const QueryShareProductNameByProductKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryShareProductNameByProductKeyAsyncHandler;
 			typedef Outcome<Error, Model::QuerySharePromotionActivityAuditResultResult> QuerySharePromotionActivityAuditResultOutcome;
 			typedef std::future<QuerySharePromotionActivityAuditResultOutcome> QuerySharePromotionActivityAuditResultOutcomeCallable;
 			typedef std::function<void(const IotClient*, const Model::QuerySharePromotionActivityAuditResultRequest&, const QuerySharePromotionActivityAuditResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySharePromotionActivityAuditResultAsyncHandler;
@@ -1901,6 +1908,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::ResetConsumerGroupPositionResult> ResetConsumerGroupPositionOutcome;
 			typedef std::future<ResetConsumerGroupPositionOutcome> ResetConsumerGroupPositionOutcomeCallable;
 			typedef std::function<void(const IotClient*, const Model::ResetConsumerGroupPositionRequest&, const ResetConsumerGroupPositionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetConsumerGroupPositionAsyncHandler;
+			typedef Outcome<Error, Model::ResetDeviceTimelineResult> ResetDeviceTimelineOutcome;
+			typedef std::future<ResetDeviceTimelineOutcome> ResetDeviceTimelineOutcomeCallable;
+			typedef std::function<void(const IotClient*, const Model::ResetDeviceTimelineRequest&, const ResetDeviceTimelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetDeviceTimelineAsyncHandler;
 			typedef Outcome<Error, Model::ResetThingResult> ResetThingOutcome;
 			typedef std::future<ResetThingOutcome> ResetThingOutcomeCallable;
 			typedef std::function<void(const IotClient*, const Model::ResetThingRequest&, const ResetThingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetThingAsyncHandler;
@@ -3001,6 +3011,9 @@ namespace AlibabaCloud
 			QuerySchedulePeriodListOutcome querySchedulePeriodList(const Model::QuerySchedulePeriodListRequest &request)const;
 			void querySchedulePeriodListAsync(const Model::QuerySchedulePeriodListRequest& request, const QuerySchedulePeriodListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			QuerySchedulePeriodListOutcomeCallable querySchedulePeriodListCallable(const Model::QuerySchedulePeriodListRequest& request) const;
+			QueryShareProductNameByProductKeyOutcome queryShareProductNameByProductKey(const Model::QueryShareProductNameByProductKeyRequest &request)const;
+			void queryShareProductNameByProductKeyAsync(const Model::QueryShareProductNameByProductKeyRequest& request, const QueryShareProductNameByProductKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			QueryShareProductNameByProductKeyOutcomeCallable queryShareProductNameByProductKeyCallable(const Model::QueryShareProductNameByProductKeyRequest& request) const;
 			QuerySharePromotionActivityAuditResultOutcome querySharePromotionActivityAuditResult(const Model::QuerySharePromotionActivityAuditResultRequest &request)const;
 			void querySharePromotionActivityAuditResultAsync(const Model::QuerySharePromotionActivityAuditResultRequest& request, const QuerySharePromotionActivityAuditResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			QuerySharePromotionActivityAuditResultOutcomeCallable querySharePromotionActivityAuditResultCallable(const Model::QuerySharePromotionActivityAuditResultRequest& request) const;
@@ -3136,6 +3149,9 @@ namespace AlibabaCloud
 			ResetConsumerGroupPositionOutcome resetConsumerGroupPosition(const Model::ResetConsumerGroupPositionRequest &request)const;
 			void resetConsumerGroupPositionAsync(const Model::ResetConsumerGroupPositionRequest& request, const ResetConsumerGroupPositionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			ResetConsumerGroupPositionOutcomeCallable resetConsumerGroupPositionCallable(const Model::ResetConsumerGroupPositionRequest& request) const;
+			ResetDeviceTimelineOutcome resetDeviceTimeline(const Model::ResetDeviceTimelineRequest &request)const;
+			void resetDeviceTimelineAsync(const Model::ResetDeviceTimelineRequest& request, const ResetDeviceTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			ResetDeviceTimelineOutcomeCallable resetDeviceTimelineCallable(const Model::ResetDeviceTimelineRequest& request) const;
 			ResetThingOutcome resetThing(const Model::ResetThingRequest &request)const;
 			void resetThingAsync(const Model::ResetThingRequest& request, const ResetThingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			ResetThingOutcomeCallable resetThingCallable(const Model::ResetThingRequest& request) const;

+ 3 - 0
iot/include/alibabacloud/iot/model/InvokeThingsServiceRequest.h

@@ -37,6 +37,8 @@ namespace AlibabaCloud
 
 				std::string getAccessKeyId()const;
 				void setAccessKeyId(const std::string& accessKeyId);
+				int getQos()const;
+				void setQos(int qos);
 				std::string getIotInstanceId()const;
 				void setIotInstanceId(const std::string& iotInstanceId);
 				std::string getIdentifier()const;
@@ -54,6 +56,7 @@ namespace AlibabaCloud
 
             private:
 				std::string accessKeyId_;
+				int qos_;
 				std::string iotInstanceId_;
 				std::string identifier_;
 				std::string productKey_;

+ 57 - 0
iot/include/alibabacloud/iot/model/QueryShareProductNameByProductKeyRequest.h

@@ -0,0 +1,57 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSHAREPRODUCTNAMEBYPRODUCTKEYREQUEST_H_
+#define ALIBABACLOUD_IOT_MODEL_QUERYSHAREPRODUCTNAMEBYPRODUCTKEYREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/iot/IotExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Iot
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_IOT_EXPORT QueryShareProductNameByProductKeyRequest : public RpcServiceRequest
+			{
+
+			public:
+				QueryShareProductNameByProductKeyRequest();
+				~QueryShareProductNameByProductKeyRequest();
+
+				std::string getShareTaskCode()const;
+				void setShareTaskCode(const std::string& shareTaskCode);
+				std::string getProductKey()const;
+				void setProductKey(const std::string& productKey);
+				std::string getApiProduct()const;
+				void setApiProduct(const std::string& apiProduct);
+				std::string getApiRevision()const;
+				void setApiRevision(const std::string& apiRevision);
+
+            private:
+				std::string shareTaskCode_;
+				std::string productKey_;
+				std::string apiProduct_;
+				std::string apiRevision_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSHAREPRODUCTNAMEBYPRODUCTKEYREQUEST_H_

+ 61 - 0
iot/include/alibabacloud/iot/model/QueryShareProductNameByProductKeyResult.h

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

+ 69 - 0
iot/include/alibabacloud/iot/model/ResetDeviceTimelineRequest.h

@@ -0,0 +1,69 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_IOT_MODEL_RESETDEVICETIMELINEREQUEST_H_
+#define ALIBABACLOUD_IOT_MODEL_RESETDEVICETIMELINEREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/iot/IotExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Iot
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_IOT_EXPORT ResetDeviceTimelineRequest : public RpcServiceRequest
+			{
+
+			public:
+				ResetDeviceTimelineRequest();
+				~ResetDeviceTimelineRequest();
+
+				std::string getRealTenantId()const;
+				void setRealTenantId(const std::string& realTenantId);
+				std::string getAccessKeyId()const;
+				void setAccessKeyId(const std::string& accessKeyId);
+				std::string getRealTripartiteKey()const;
+				void setRealTripartiteKey(const std::string& realTripartiteKey);
+				std::string getIotInstanceId()const;
+				void setIotInstanceId(const std::string& iotInstanceId);
+				std::string getProductKey()const;
+				void setProductKey(const std::string& productKey);
+				std::string getApiProduct()const;
+				void setApiProduct(const std::string& apiProduct);
+				std::string getApiRevision()const;
+				void setApiRevision(const std::string& apiRevision);
+				std::string getDeviceName()const;
+				void setDeviceName(const std::string& deviceName);
+
+            private:
+				std::string realTenantId_;
+				std::string accessKeyId_;
+				std::string realTripartiteKey_;
+				std::string iotInstanceId_;
+				std::string productKey_;
+				std::string apiProduct_;
+				std::string apiRevision_;
+				std::string deviceName_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_IOT_MODEL_RESETDEVICETIMELINEREQUEST_H_

+ 55 - 0
iot/include/alibabacloud/iot/model/ResetDeviceTimelineResult.h

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

+ 3 - 0
iot/include/alibabacloud/iot/model/SetDevicesPropertyRequest.h

@@ -37,6 +37,8 @@ namespace AlibabaCloud
 
 				std::string getAccessKeyId()const;
 				void setAccessKeyId(const std::string& accessKeyId);
+				int getQos()const;
+				void setQos(int qos);
 				std::string getIotInstanceId()const;
 				void setIotInstanceId(const std::string& iotInstanceId);
 				std::string getProductKey()const;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
 
             private:
 				std::string accessKeyId_;
+				int qos_;
 				std::string iotInstanceId_;
 				std::string productKey_;
 				std::string apiProduct_;

+ 72 - 0
iot/src/IotClient.cc

@@ -11031,6 +11031,42 @@ IotClient::QuerySchedulePeriodListOutcomeCallable IotClient::querySchedulePeriod
 	return task->get_future();
 }
 
+IotClient::QueryShareProductNameByProductKeyOutcome IotClient::queryShareProductNameByProductKey(const QueryShareProductNameByProductKeyRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return QueryShareProductNameByProductKeyOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return QueryShareProductNameByProductKeyOutcome(QueryShareProductNameByProductKeyResult(outcome.result()));
+	else
+		return QueryShareProductNameByProductKeyOutcome(outcome.error());
+}
+
+void IotClient::queryShareProductNameByProductKeyAsync(const QueryShareProductNameByProductKeyRequest& request, const QueryShareProductNameByProductKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, queryShareProductNameByProductKey(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+IotClient::QueryShareProductNameByProductKeyOutcomeCallable IotClient::queryShareProductNameByProductKeyCallable(const QueryShareProductNameByProductKeyRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<QueryShareProductNameByProductKeyOutcome()>>(
+			[this, request]()
+			{
+			return this->queryShareProductNameByProductKey(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 IotClient::QuerySharePromotionActivityAuditResultOutcome IotClient::querySharePromotionActivityAuditResult(const QuerySharePromotionActivityAuditResultRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -12651,6 +12687,42 @@ IotClient::ResetConsumerGroupPositionOutcomeCallable IotClient::resetConsumerGro
 	return task->get_future();
 }
 
+IotClient::ResetDeviceTimelineOutcome IotClient::resetDeviceTimeline(const ResetDeviceTimelineRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return ResetDeviceTimelineOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return ResetDeviceTimelineOutcome(ResetDeviceTimelineResult(outcome.result()));
+	else
+		return ResetDeviceTimelineOutcome(outcome.error());
+}
+
+void IotClient::resetDeviceTimelineAsync(const ResetDeviceTimelineRequest& request, const ResetDeviceTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, resetDeviceTimeline(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+IotClient::ResetDeviceTimelineOutcomeCallable IotClient::resetDeviceTimelineCallable(const ResetDeviceTimelineRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<ResetDeviceTimelineOutcome()>>(
+			[this, request]()
+			{
+			return this->resetDeviceTimeline(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 IotClient::ResetThingOutcome IotClient::resetThing(const ResetThingRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 11 - 0
iot/src/model/InvokeThingsServiceRequest.cc

@@ -38,6 +38,17 @@ void InvokeThingsServiceRequest::setAccessKeyId(const std::string& accessKeyId)
 	setParameter("AccessKeyId", accessKeyId);
 }
 
+int InvokeThingsServiceRequest::getQos()const
+{
+	return qos_;
+}
+
+void InvokeThingsServiceRequest::setQos(int qos)
+{
+	qos_ = qos;
+	setParameter("Qos", std::to_string(qos));
+}
+
 std::string InvokeThingsServiceRequest::getIotInstanceId()const
 {
 	return iotInstanceId_;

+ 73 - 0
iot/src/model/QueryShareProductNameByProductKeyRequest.cc

@@ -0,0 +1,73 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/iot/model/QueryShareProductNameByProductKeyRequest.h>
+
+using AlibabaCloud::Iot::Model::QueryShareProductNameByProductKeyRequest;
+
+QueryShareProductNameByProductKeyRequest::QueryShareProductNameByProductKeyRequest() :
+	RpcServiceRequest("iot", "2018-01-20", "QueryShareProductNameByProductKey")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+QueryShareProductNameByProductKeyRequest::~QueryShareProductNameByProductKeyRequest()
+{}
+
+std::string QueryShareProductNameByProductKeyRequest::getShareTaskCode()const
+{
+	return shareTaskCode_;
+}
+
+void QueryShareProductNameByProductKeyRequest::setShareTaskCode(const std::string& shareTaskCode)
+{
+	shareTaskCode_ = shareTaskCode;
+	setBodyParameter("ShareTaskCode", shareTaskCode);
+}
+
+std::string QueryShareProductNameByProductKeyRequest::getProductKey()const
+{
+	return productKey_;
+}
+
+void QueryShareProductNameByProductKeyRequest::setProductKey(const std::string& productKey)
+{
+	productKey_ = productKey;
+	setBodyParameter("ProductKey", productKey);
+}
+
+std::string QueryShareProductNameByProductKeyRequest::getApiProduct()const
+{
+	return apiProduct_;
+}
+
+void QueryShareProductNameByProductKeyRequest::setApiProduct(const std::string& apiProduct)
+{
+	apiProduct_ = apiProduct;
+	setBodyParameter("ApiProduct", apiProduct);
+}
+
+std::string QueryShareProductNameByProductKeyRequest::getApiRevision()const
+{
+	return apiRevision_;
+}
+
+void QueryShareProductNameByProductKeyRequest::setApiRevision(const std::string& apiRevision)
+{
+	apiRevision_ = apiRevision;
+	setBodyParameter("ApiRevision", apiRevision);
+}
+

+ 73 - 0
iot/src/model/QueryShareProductNameByProductKeyResult.cc

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

+ 117 - 0
iot/src/model/ResetDeviceTimelineRequest.cc

@@ -0,0 +1,117 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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/iot/model/ResetDeviceTimelineRequest.h>
+
+using AlibabaCloud::Iot::Model::ResetDeviceTimelineRequest;
+
+ResetDeviceTimelineRequest::ResetDeviceTimelineRequest() :
+	RpcServiceRequest("iot", "2018-01-20", "ResetDeviceTimeline")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+ResetDeviceTimelineRequest::~ResetDeviceTimelineRequest()
+{}
+
+std::string ResetDeviceTimelineRequest::getRealTenantId()const
+{
+	return realTenantId_;
+}
+
+void ResetDeviceTimelineRequest::setRealTenantId(const std::string& realTenantId)
+{
+	realTenantId_ = realTenantId;
+	setParameter("RealTenantId", realTenantId);
+}
+
+std::string ResetDeviceTimelineRequest::getAccessKeyId()const
+{
+	return accessKeyId_;
+}
+
+void ResetDeviceTimelineRequest::setAccessKeyId(const std::string& accessKeyId)
+{
+	accessKeyId_ = accessKeyId;
+	setParameter("AccessKeyId", accessKeyId);
+}
+
+std::string ResetDeviceTimelineRequest::getRealTripartiteKey()const
+{
+	return realTripartiteKey_;
+}
+
+void ResetDeviceTimelineRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
+{
+	realTripartiteKey_ = realTripartiteKey;
+	setParameter("RealTripartiteKey", realTripartiteKey);
+}
+
+std::string ResetDeviceTimelineRequest::getIotInstanceId()const
+{
+	return iotInstanceId_;
+}
+
+void ResetDeviceTimelineRequest::setIotInstanceId(const std::string& iotInstanceId)
+{
+	iotInstanceId_ = iotInstanceId;
+	setParameter("IotInstanceId", iotInstanceId);
+}
+
+std::string ResetDeviceTimelineRequest::getProductKey()const
+{
+	return productKey_;
+}
+
+void ResetDeviceTimelineRequest::setProductKey(const std::string& productKey)
+{
+	productKey_ = productKey;
+	setParameter("ProductKey", productKey);
+}
+
+std::string ResetDeviceTimelineRequest::getApiProduct()const
+{
+	return apiProduct_;
+}
+
+void ResetDeviceTimelineRequest::setApiProduct(const std::string& apiProduct)
+{
+	apiProduct_ = apiProduct;
+	setBodyParameter("ApiProduct", apiProduct);
+}
+
+std::string ResetDeviceTimelineRequest::getApiRevision()const
+{
+	return apiRevision_;
+}
+
+void ResetDeviceTimelineRequest::setApiRevision(const std::string& apiRevision)
+{
+	apiRevision_ = apiRevision;
+	setBodyParameter("ApiRevision", apiRevision);
+}
+
+std::string ResetDeviceTimelineRequest::getDeviceName()const
+{
+	return deviceName_;
+}
+
+void ResetDeviceTimelineRequest::setDeviceName(const std::string& deviceName)
+{
+	deviceName_ = deviceName;
+	setParameter("DeviceName", deviceName);
+}
+

+ 65 - 0
iot/src/model/ResetDeviceTimelineResult.cc

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

+ 11 - 0
iot/src/model/SetDevicesPropertyRequest.cc

@@ -38,6 +38,17 @@ void SetDevicesPropertyRequest::setAccessKeyId(const std::string& accessKeyId)
 	setParameter("AccessKeyId", accessKeyId);
 }
 
+int SetDevicesPropertyRequest::getQos()const
+{
+	return qos_;
+}
+
+void SetDevicesPropertyRequest::setQos(int qos)
+{
+	qos_ = qos;
+	setParameter("Qos", std::to_string(qos));
+}
+
 std::string SetDevicesPropertyRequest::getIotInstanceId()const
 {
 	return iotInstanceId_;