瀏覽代碼

1, Add InvokeDataAPIService interface, support invoke service of data api to get sql query result.

sdk-team 6 年之前
父節點
當前提交
2fbfb9b864
共有 100 個文件被更改,包括 1341 次插入1284 次删除
  1. 5 0
      ChangeLog.txt
  2. 5 5
      services/iot/batch_add_device_group_relations.go
  3. 10 16
      services/iot/batch_check_device_names.go
  4. 5 5
      services/iot/batch_delete_device_group_relations.go
  5. 11 25
      services/iot/batch_get_device_state.go
  6. 8 13
      services/iot/batch_register_device.go
  7. 8 13
      services/iot/batch_register_device_with_apply_id.go
  8. 7 7
      services/iot/batch_update_device_nickname.go
  9. 2 2
      services/iot/client.go
  10. 132 0
      services/iot/create_data_api_service.go
  11. 8 16
      services/iot/create_device_group.go
  12. 5 5
      services/iot/create_lo_ra_nodes_task.go
  13. 14 26
      services/iot/create_product.go
  14. 10 19
      services/iot/create_product_tags.go
  15. 2 3
      services/iot/create_product_topic.go
  16. 7 8
      services/iot/create_rule.go
  17. 3 4
      services/iot/create_rule_action.go
  18. 11 13
      services/iot/create_topic_route_table.go
  19. 4 5
      services/iot/delete_device.go
  20. 4 5
      services/iot/delete_device_file.go
  21. 2 3
      services/iot/delete_device_group.go
  22. 3 4
      services/iot/delete_device_prop.go
  23. 2 3
      services/iot/delete_product.go
  24. 5 6
      services/iot/delete_product_tags.go
  25. 3 4
      services/iot/delete_product_topic.go
  26. 2 3
      services/iot/delete_rule.go
  27. 2 3
      services/iot/delete_rule_action.go
  28. 11 13
      services/iot/delete_topic_route_table.go
  29. 4 5
      services/iot/disable_thing.go
  30. 4 5
      services/iot/enable_thing.go
  31. 107 0
      services/iot/get_data_api_service_detail.go
  32. 3 4
      services/iot/get_device_shadow.go
  33. 9 14
      services/iot/get_device_status.go
  34. 9 29
      services/iot/get_gateway_by_sub_device.go
  35. 11 12
      services/iot/get_lora_nodes_task.go
  36. 11 12
      services/iot/get_nodes_adding_task.go
  37. 7 27
      services/iot/get_rule.go
  38. 7 16
      services/iot/get_rule_action.go
  39. 10 29
      services/iot/get_thing_topo.go
  40. 116 0
      services/iot/invoke_data_api_service.go
  41. 11 17
      services/iot/invoke_thing_service.go
  42. 7 8
      services/iot/invoke_things_service.go
  43. 11 23
      services/iot/list_product_by_tags.go
  44. 7 17
      services/iot/list_product_tags.go
  45. 12 35
      services/iot/list_rule.go
  46. 7 20
      services/iot/list_rule_actions.go
  47. 10 15
      services/iot/notify_add_thing_topo.go
  48. 5 6
      services/iot/pub.go
  49. 4 5
      services/iot/pub_broadcast.go
  50. 16 34
      services/iot/query_app_device_list.go
  51. 8 15
      services/iot/query_batch_register_device_status.go
  52. 12 32
      services/iot/query_device.go
  53. 15 26
      services/iot/query_device_by_tags.go
  54. 12 31
      services/iot/query_device_desired_property.go
  55. 9 31
      services/iot/query_device_detail.go
  56. 13 32
      services/iot/query_device_event_data.go
  57. 9 18
      services/iot/query_device_file.go
  58. 14 26
      services/iot/query_device_file_list.go
  59. 8 20
      services/iot/query_device_group_by_device.go
  60. 15 24
      services/iot/query_device_group_by_tags.go
  61. 7 18
      services/iot/query_device_group_info.go
  62. 13 25
      services/iot/query_device_group_list.go
  63. 7 17
      services/iot/query_device_group_tag_list.go
  64. 13 25
      services/iot/query_device_list_by_device_group.go
  65. 3 4
      services/iot/query_device_prop.go
  66. 15 34
      services/iot/query_device_properties_data.go
  67. 13 29
      services/iot/query_device_property_data.go
  68. 9 27
      services/iot/query_device_property_status.go
  69. 13 32
      services/iot/query_device_service_data.go
  70. 7 14
      services/iot/query_device_statistics.go
  71. 8 22
      services/iot/query_lo_ra_join_permissions.go
  72. 13 25
      services/iot/query_page_by_apply_id.go
  73. 7 27
      services/iot/query_product.go
  74. 8 31
      services/iot/query_product_list.go
  75. 7 20
      services/iot/query_product_topic.go
  76. 7 18
      services/iot/query_super_device_group.go
  77. 7 9
      services/iot/query_topic_reverse_route_table.go
  78. 7 9
      services/iot/query_topic_route_table.go
  79. 5 6
      services/iot/r_rpc.go
  80. 10 21
      services/iot/register_device.go
  81. 4 5
      services/iot/remove_thing_topo.go
  82. 3 4
      services/iot/save_device_prop.go
  83. 9 15
      services/iot/set_device_desired_property.go
  84. 3 4
      services/iot/set_device_group_tags.go
  85. 8 13
      services/iot/set_device_property.go
  86. 6 7
      services/iot/set_devices_property.go
  87. 2 3
      services/iot/start_rule.go
  88. 2 3
      services/iot/stop_rule.go
  89. 24 0
      services/iot/struct_apply_device_info.go
  90. 21 0
      services/iot/struct_apply_device_list.go
  91. 76 0
      services/iot/struct_data.go
  92. 21 0
      services/iot/struct_data_in_get_device_status.go
  93. 36 0
      services/iot/struct_data_in_get_gateway_by_sub_device.go
  94. 25 0
      services/iot/struct_data_in_get_thing_topo.go
  95. 21 0
      services/iot/struct_data_in_list_product_tags.go
  96. 21 0
      services/iot/struct_data_in_list_rule.go
  97. 21 0
      services/iot/struct_data_in_query_app_device_list.go
  98. 23 0
      services/iot/struct_data_in_query_batch_register_device_status.go
  99. 21 0
      services/iot/struct_data_in_query_device.go
  100. 21 0
      services/iot/struct_data_in_query_device_by_tags.go

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2019-06-12 Version: 1.60.38
+1, Add InvokeDataAPIService interface, support invoke service of data api to get sql query result.
+2, Add GetDataAPIServiceDetail interface, support get data api's detail information.
+3, Add CreateDataAPIService interface, support create data api with sql statement.
+
 2019-06-06 Version: 1.60.37
 1, Add RuleId in DescribeRuleAttribute.
 

+ 5 - 5
services/iot/batch_add_device_group_relations.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,15 +76,15 @@ func (client *Client) BatchAddDeviceGroupRelationsWithCallback(request *BatchAdd
 // BatchAddDeviceGroupRelationsRequest is the request struct for api BatchAddDeviceGroupRelations
 type BatchAddDeviceGroupRelationsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string                                `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string                                `position:"Query" name:"IotInstanceId"`
 	GroupId       string                                `position:"Query" name:"GroupId"`
-	Device        *[]BatchAddDeviceGroupRelationsDevice `position:"Query" name:"Device" type:"Repeated"`
+	Device        *[]BatchAddDeviceGroupRelationsDevice `position:"Query" name:"Device"  type:"Repeated"`
 }
 
+// BatchAddDeviceGroupRelationsDevice is a repeated param struct in BatchAddDeviceGroupRelationsRequest
 type BatchAddDeviceGroupRelationsDevice struct {
-	ProductKey string `name:"ProductKey"`
 	DeviceName string `name:"DeviceName"`
+	ProductKey string `name:"ProductKey"`
 }
 
 // BatchAddDeviceGroupRelationsResponse is the response struct for api BatchAddDeviceGroupRelations

+ 10 - 16
services/iot/batch_check_device_names.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,25 +76,19 @@ func (client *Client) BatchCheckDeviceNamesWithCallback(request *BatchCheckDevic
 // BatchCheckDeviceNamesRequest is the request struct for api BatchCheckDeviceNames
 type BatchCheckDeviceNamesRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string   `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string   `position:"Query" name:"IotInstanceId"`
-	ProductKey    string   `position:"Query" name:"ProductKey"`
-	DeviceName    []string `position:"Query" name:"DeviceName" type:"Repeated"`
+	IotInstanceId string    `position:"Query" name:"IotInstanceId"`
+	DeviceName    *[]string `position:"Query" name:"DeviceName"  type:"Repeated"`
+	ProductKey    string    `position:"Query" name:"ProductKey"`
 }
 
 // BatchCheckDeviceNamesResponse is the response struct for api BatchCheckDeviceNames
 type BatchCheckDeviceNamesResponse struct {
 	*responses.BaseResponse
-	RequestId    string                     `json:"RequestId" xml:"RequestId"`
-	Success      bool                       `json:"Success" xml:"Success"`
-	Code         string                     `json:"Code" xml:"Code"`
-	ErrorMessage string                     `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         BatchCheckDeviceNamesData0 `json:"Data" xml:"Data"`
-}
-
-type BatchCheckDeviceNamesData0 struct {
-	ApplyId               int64    `json:"ApplyId" xml:"ApplyId"`
-	InvalidDeviceNameList []string `json:"InvalidDeviceNameList" xml:"InvalidDeviceNameList"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateBatchCheckDeviceNamesRequest creates a request to invoke BatchCheckDeviceNames API

+ 5 - 5
services/iot/batch_delete_device_group_relations.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,15 +76,15 @@ func (client *Client) BatchDeleteDeviceGroupRelationsWithCallback(request *Batch
 // BatchDeleteDeviceGroupRelationsRequest is the request struct for api BatchDeleteDeviceGroupRelations
 type BatchDeleteDeviceGroupRelationsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string                                   `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string                                   `position:"Query" name:"IotInstanceId"`
 	GroupId       string                                   `position:"Query" name:"GroupId"`
-	Device        *[]BatchDeleteDeviceGroupRelationsDevice `position:"Query" name:"Device" type:"Repeated"`
+	Device        *[]BatchDeleteDeviceGroupRelationsDevice `position:"Query" name:"Device"  type:"Repeated"`
 }
 
+// BatchDeleteDeviceGroupRelationsDevice is a repeated param struct in BatchDeleteDeviceGroupRelationsRequest
 type BatchDeleteDeviceGroupRelationsDevice struct {
-	ProductKey string `name:"ProductKey"`
 	DeviceName string `name:"DeviceName"`
+	ProductKey string `name:"ProductKey"`
 }
 
 // BatchDeleteDeviceGroupRelationsResponse is the response struct for api BatchDeleteDeviceGroupRelations

+ 11 - 25
services/iot/batch_get_device_state.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,34 +76,20 @@ func (client *Client) BatchGetDeviceStateWithCallback(request *BatchGetDeviceSta
 // BatchGetDeviceStateRequest is the request struct for api BatchGetDeviceState
 type BatchGetDeviceStateRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string   `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string   `position:"Query" name:"IotInstanceId"`
-	ProductKey    string   `position:"Query" name:"ProductKey"`
-	DeviceName    []string `position:"Query" name:"DeviceName" type:"Repeated"`
-	IotId         []string `position:"Query" name:"IotId" type:"Repeated"`
+	IotId         *[]string `position:"Query" name:"IotId"  type:"Repeated"`
+	IotInstanceId string    `position:"Query" name:"IotInstanceId"`
+	DeviceName    *[]string `position:"Query" name:"DeviceName"  type:"Repeated"`
+	ProductKey    string    `position:"Query" name:"ProductKey"`
 }
 
 // BatchGetDeviceStateResponse is the response struct for api BatchGetDeviceState
 type BatchGetDeviceStateResponse struct {
 	*responses.BaseResponse
-	RequestId        string                               `json:"RequestId" xml:"RequestId"`
-	Success          bool                                 `json:"Success" xml:"Success"`
-	Code             string                               `json:"Code" xml:"Code"`
-	ErrorMessage     string                               `json:"ErrorMessage" xml:"ErrorMessage"`
-	DeviceStatusList BatchGetDeviceStateDeviceStatusList0 `json:"DeviceStatusList" xml:"DeviceStatusList"`
-}
-
-type BatchGetDeviceStateDeviceStatusList0 struct {
-	DeviceStatus []BatchGetDeviceStateDeviceStatus1 `json:"DeviceStatus" xml:"DeviceStatus"`
-}
-
-type BatchGetDeviceStateDeviceStatus1 struct {
-	DeviceId       string `json:"DeviceId" xml:"DeviceId"`
-	DeviceName     string `json:"DeviceName" xml:"DeviceName"`
-	Status         string `json:"Status" xml:"Status"`
-	AsAddress      string `json:"AsAddress" xml:"AsAddress"`
-	LastOnlineTime string `json:"LastOnlineTime" xml:"LastOnlineTime"`
-	IotId          string `json:"IotId" xml:"IotId"`
+	RequestId        string           `json:"RequestId" xml:"RequestId"`
+	Success          bool             `json:"Success" xml:"Success"`
+	Code             string           `json:"Code" xml:"Code"`
+	ErrorMessage     string           `json:"ErrorMessage" xml:"ErrorMessage"`
+	DeviceStatusList DeviceStatusList `json:"DeviceStatusList" xml:"DeviceStatusList"`
 }
 
 // CreateBatchGetDeviceStateRequest creates a request to invoke BatchGetDeviceState API

+ 8 - 13
services/iot/batch_register_device.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,24 +76,19 @@ func (client *Client) BatchRegisterDeviceWithCallback(request *BatchRegisterDevi
 // BatchRegisterDeviceRequest is the request struct for api BatchRegisterDevice
 type BatchRegisterDeviceRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
-	ProductKey    string           `position:"Query" name:"ProductKey"`
 	Count         requests.Integer `position:"Query" name:"Count"`
+	ProductKey    string           `position:"Query" name:"ProductKey"`
 }
 
 // BatchRegisterDeviceResponse is the response struct for api BatchRegisterDevice
 type BatchRegisterDeviceResponse struct {
 	*responses.BaseResponse
-	RequestId    string                   `json:"RequestId" xml:"RequestId"`
-	Success      bool                     `json:"Success" xml:"Success"`
-	Code         string                   `json:"Code" xml:"Code"`
-	ErrorMessage string                   `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         BatchRegisterDeviceData0 `json:"Data" xml:"Data"`
-}
-
-type BatchRegisterDeviceData0 struct {
-	ApplyId int64 `json:"ApplyId" xml:"ApplyId"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateBatchRegisterDeviceRequest creates a request to invoke BatchRegisterDevice API

+ 8 - 13
services/iot/batch_register_device_with_apply_id.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,24 +76,19 @@ func (client *Client) BatchRegisterDeviceWithApplyIdWithCallback(request *BatchR
 // BatchRegisterDeviceWithApplyIdRequest is the request struct for api BatchRegisterDeviceWithApplyId
 type BatchRegisterDeviceWithApplyIdRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
+	ApplyId       requests.Integer `position:"Query" name:"ApplyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	ProductKey    string           `position:"Query" name:"ProductKey"`
-	ApplyId       requests.Integer `position:"Query" name:"ApplyId"`
 }
 
 // BatchRegisterDeviceWithApplyIdResponse is the response struct for api BatchRegisterDeviceWithApplyId
 type BatchRegisterDeviceWithApplyIdResponse struct {
 	*responses.BaseResponse
-	RequestId    string                              `json:"RequestId" xml:"RequestId"`
-	Success      bool                                `json:"Success" xml:"Success"`
-	Code         string                              `json:"Code" xml:"Code"`
-	ErrorMessage string                              `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         BatchRegisterDeviceWithApplyIdData0 `json:"Data" xml:"Data"`
-}
-
-type BatchRegisterDeviceWithApplyIdData0 struct {
-	ApplyId int64 `json:"ApplyId" xml:"ApplyId"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateBatchRegisterDeviceWithApplyIdRequest creates a request to invoke BatchRegisterDeviceWithApplyId API

+ 7 - 7
services/iot/batch_update_device_nickname.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,16 +76,16 @@ func (client *Client) BatchUpdateDeviceNicknameWithCallback(request *BatchUpdate
 // BatchUpdateDeviceNicknameRequest is the request struct for api BatchUpdateDeviceNickname
 type BatchUpdateDeviceNicknameRequest struct {
 	*requests.RpcRequest
-	AccessKeyId        string                                         `position:"Query" name:"AccessKeyId"`
+	DeviceNicknameInfo *[]BatchUpdateDeviceNicknameDeviceNicknameInfo `position:"Query" name:"DeviceNicknameInfo"  type:"Repeated"`
 	IotInstanceId      string                                         `position:"Query" name:"IotInstanceId"`
-	DeviceNicknameInfo *[]BatchUpdateDeviceNicknameDeviceNicknameInfo `position:"Query" name:"DeviceNicknameInfo" type:"Repeated"`
 }
 
+// BatchUpdateDeviceNicknameDeviceNicknameInfo is a repeated param struct in BatchUpdateDeviceNicknameRequest
 type BatchUpdateDeviceNicknameDeviceNicknameInfo struct {
-	ProductKey string `name:"ProductKey"`
-	DeviceName string `name:"DeviceName"`
-	Nickname   string `name:"Nickname"`
 	IotId      string `name:"IotId"`
+	Nickname   string `name:"Nickname"`
+	DeviceName string `name:"DeviceName"`
+	ProductKey string `name:"ProductKey"`
 }
 
 // BatchUpdateDeviceNicknameResponse is the response struct for api BatchUpdateDeviceNickname

+ 2 - 2
services/iot/client.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"

+ 132 - 0
services/iot/create_data_api_service.go

@@ -0,0 +1,132 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CreateDataAPIService invokes the iot.CreateDataAPIService API synchronously
+// api document: https://help.aliyun.com/api/iot/createdataapiservice.html
+func (client *Client) CreateDataAPIService(request *CreateDataAPIServiceRequest) (response *CreateDataAPIServiceResponse, err error) {
+	response = CreateCreateDataAPIServiceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateDataAPIServiceWithChan invokes the iot.CreateDataAPIService API asynchronously
+// api document: https://help.aliyun.com/api/iot/createdataapiservice.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateDataAPIServiceWithChan(request *CreateDataAPIServiceRequest) (<-chan *CreateDataAPIServiceResponse, <-chan error) {
+	responseChan := make(chan *CreateDataAPIServiceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateDataAPIService(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateDataAPIServiceWithCallback invokes the iot.CreateDataAPIService API asynchronously
+// api document: https://help.aliyun.com/api/iot/createdataapiservice.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateDataAPIServiceWithCallback(request *CreateDataAPIServiceRequest, callback func(response *CreateDataAPIServiceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateDataAPIServiceResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateDataAPIService(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateDataAPIServiceRequest is the request struct for api CreateDataAPIService
+type CreateDataAPIServiceRequest struct {
+	*requests.RpcRequest
+	ResponseParam *[]CreateDataAPIServiceResponseParam `position:"Body" name:"ResponseParam"  type:"Repeated"`
+	OriginSql     string                               `position:"Query" name:"OriginSql"`
+	DisplayName   string                               `position:"Query" name:"DisplayName"`
+	ApiPath       string                               `position:"Query" name:"ApiPath"`
+	RequestParam  *[]CreateDataAPIServiceRequestParam  `position:"Body" name:"RequestParam"  type:"Repeated"`
+	FolderId      string                               `position:"Query" name:"FolderId"`
+	TemplateSql   string                               `position:"Query" name:"TemplateSql"`
+	Desc          string                               `position:"Query" name:"Desc"`
+}
+
+// CreateDataAPIServiceResponseParam is a repeated param struct in CreateDataAPIServiceRequest
+type CreateDataAPIServiceResponseParam struct {
+	Name     string `name:"Name"`
+	Type     string `name:"Type"`
+	Required string `name:"Required"`
+	Desc     string `name:"Desc"`
+	Example  string `name:"Example"`
+}
+
+// CreateDataAPIServiceRequestParam is a repeated param struct in CreateDataAPIServiceRequest
+type CreateDataAPIServiceRequestParam struct {
+	Name     string `name:"Name"`
+	Type     string `name:"Type"`
+	Required string `name:"Required"`
+	Desc     string `name:"Desc"`
+	Example  string `name:"Example"`
+}
+
+// CreateDataAPIServiceResponse is the response struct for api CreateDataAPIService
+type CreateDataAPIServiceResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code         string `json:"Code" xml:"Code"`
+	Data         Data   `json:"Data" xml:"Data"`
+}
+
+// CreateCreateDataAPIServiceRequest creates a request to invoke CreateDataAPIService API
+func CreateCreateDataAPIServiceRequest() (request *CreateDataAPIServiceRequest) {
+	request = &CreateDataAPIServiceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Iot", "2018-01-20", "CreateDataAPIService", "iot", "openAPI")
+	return
+}
+
+// CreateCreateDataAPIServiceResponse creates a response to parse from CreateDataAPIService response
+func CreateCreateDataAPIServiceResponse() (response *CreateDataAPIServiceResponse) {
+	response = &CreateDataAPIServiceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 8 - 16
services/iot/create_device_group.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,28 +76,20 @@ func (client *Client) CreateDeviceGroupWithCallback(request *CreateDeviceGroupRe
 // CreateDeviceGroupRequest is the request struct for api CreateDeviceGroup
 type CreateDeviceGroupRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
+	GroupDesc     string `position:"Query" name:"GroupDesc"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	SuperGroupId  string `position:"Query" name:"SuperGroupId"`
 	GroupName     string `position:"Query" name:"GroupName"`
-	GroupDesc     string `position:"Query" name:"GroupDesc"`
 }
 
 // CreateDeviceGroupResponse is the response struct for api CreateDeviceGroup
 type CreateDeviceGroupResponse struct {
 	*responses.BaseResponse
-	RequestId    string                 `json:"RequestId" xml:"RequestId"`
-	Success      bool                   `json:"Success" xml:"Success"`
-	Code         string                 `json:"Code" xml:"Code"`
-	ErrorMessage string                 `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         CreateDeviceGroupData0 `json:"Data" xml:"Data"`
-}
-
-type CreateDeviceGroupData0 struct {
-	GroupId   string `json:"GroupId" xml:"GroupId"`
-	UtcCreate string `json:"UtcCreate" xml:"UtcCreate"`
-	GroupName string `json:"GroupName" xml:"GroupName"`
-	GroupDesc string `json:"GroupDesc" xml:"GroupDesc"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateCreateDeviceGroupRequest creates a request to invoke CreateDeviceGroup API

+ 5 - 5
services/iot/create_lo_ra_nodes_task.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,15 +76,15 @@ func (client *Client) CreateLoRaNodesTaskWithCallback(request *CreateLoRaNodesTa
 // CreateLoRaNodesTaskRequest is the request struct for api CreateLoRaNodesTask
 type CreateLoRaNodesTaskRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string                           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string                           `position:"Query" name:"IotInstanceId"`
 	ProductKey    string                           `position:"Query" name:"ProductKey"`
-	DeviceInfo    *[]CreateLoRaNodesTaskDeviceInfo `position:"Query" name:"DeviceInfo" type:"Repeated"`
+	DeviceInfo    *[]CreateLoRaNodesTaskDeviceInfo `position:"Query" name:"DeviceInfo"  type:"Repeated"`
 }
 
+// CreateLoRaNodesTaskDeviceInfo is a repeated param struct in CreateLoRaNodesTaskRequest
 type CreateLoRaNodesTaskDeviceInfo struct {
-	DevEui  string `name:"DevEui"`
 	PinCode string `name:"PinCode"`
+	DevEui  string `name:"DevEui"`
 }
 
 // CreateLoRaNodesTaskResponse is the response struct for api CreateLoRaNodesTask

+ 14 - 26
services/iot/create_product.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,40 +76,28 @@ func (client *Client) CreateProductWithCallback(request *CreateProductRequest, c
 // CreateProductRequest is the request struct for api CreateProduct
 type CreateProductRequest struct {
 	*requests.RpcRequest
-	AccessKeyId         string           `position:"Query" name:"AccessKeyId"`
+	DataFormat          requests.Integer `position:"Query" name:"DataFormat"`
+	NodeType            requests.Integer `position:"Query" name:"NodeType"`
+	Id2                 requests.Boolean `position:"Query" name:"Id2"`
 	IotInstanceId       string           `position:"Query" name:"IotInstanceId"`
+	NetType             string           `position:"Query" name:"NetType"`
 	ProductName         string           `position:"Query" name:"ProductName"`
-	NodeType            requests.Integer `position:"Query" name:"NodeType"`
-	DataFormat          requests.Integer `position:"Query" name:"DataFormat"`
 	Description         string           `position:"Query" name:"Description"`
-	AliyunCommodityCode string           `position:"Query" name:"AliyunCommodityCode"`
-	Id2                 requests.Boolean `position:"Query" name:"Id2"`
-	CategoryId          requests.Integer `position:"Query" name:"CategoryId"`
 	ProtocolType        string           `position:"Query" name:"ProtocolType"`
-	NetType             string           `position:"Query" name:"NetType"`
+	AliyunCommodityCode string           `position:"Query" name:"AliyunCommodityCode"`
 	JoinPermissionId    string           `position:"Query" name:"JoinPermissionId"`
+	CategoryId          requests.Integer `position:"Query" name:"CategoryId"`
 }
 
 // CreateProductResponse is the response struct for api CreateProduct
 type CreateProductResponse struct {
 	*responses.BaseResponse
-	RequestId    string             `json:"RequestId" xml:"RequestId"`
-	Success      bool               `json:"Success" xml:"Success"`
-	Code         string             `json:"Code" xml:"Code"`
-	ErrorMessage string             `json:"ErrorMessage" xml:"ErrorMessage"`
-	ProductKey   string             `json:"ProductKey" xml:"ProductKey"`
-	Data         CreateProductData0 `json:"Data" xml:"Data"`
-}
-
-type CreateProductData0 struct {
-	DataFormat          int    `json:"DataFormat" xml:"DataFormat"`
-	Description         string `json:"Description" xml:"Description"`
-	NodeType            int    `json:"NodeType" xml:"NodeType"`
-	ProductKey          string `json:"ProductKey" xml:"ProductKey"`
-	ProductName         string `json:"ProductName" xml:"ProductName"`
-	AliyunCommodityCode string `json:"AliyunCommodityCode" xml:"AliyunCommodityCode"`
-	Id2                 bool   `json:"Id2" xml:"Id2"`
-	ProtocolType        string `json:"ProtocolType" xml:"ProtocolType"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	ProductKey   string `json:"ProductKey" xml:"ProductKey"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateCreateProductRequest creates a request to invoke CreateProduct API

+ 10 - 19
services/iot/create_product_tags.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,34 +76,25 @@ func (client *Client) CreateProductTagsWithCallback(request *CreateProductTagsRe
 // CreateProductTagsRequest is the request struct for api CreateProductTags
 type CreateProductTagsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string                         `position:"Query" name:"AccessKeyId"`
+	ProductTag    *[]CreateProductTagsProductTag `position:"Query" name:"ProductTag"  type:"Repeated"`
 	IotInstanceId string                         `position:"Query" name:"IotInstanceId"`
 	ProductKey    string                         `position:"Query" name:"ProductKey"`
-	ProductTag    *[]CreateProductTagsProductTag `position:"Query" name:"ProductTag" type:"Repeated"`
 }
 
+// CreateProductTagsProductTag is a repeated param struct in CreateProductTagsRequest
 type CreateProductTagsProductTag struct {
-	TagKey   string `name:"TagKey"`
 	TagValue string `name:"TagValue"`
+	TagKey   string `name:"TagKey"`
 }
 
 // CreateProductTagsResponse is the response struct for api CreateProductTags
 type CreateProductTagsResponse struct {
 	*responses.BaseResponse
-	RequestId          string                               `json:"RequestId" xml:"RequestId"`
-	Success            bool                                 `json:"Success" xml:"Success"`
-	ErrorMessage       string                               `json:"ErrorMessage" xml:"ErrorMessage"`
-	Code               string                               `json:"Code" xml:"Code"`
-	InvalidProductTags CreateProductTagsInvalidProductTags0 `json:"InvalidProductTags" xml:"InvalidProductTags"`
-}
-
-type CreateProductTagsInvalidProductTags0 struct {
-	ProductTag []CreateProductTagsProductTag1 `json:"ProductTag" xml:"ProductTag"`
-}
-
-type CreateProductTagsProductTag1 struct {
-	TagKey   string `json:"TagKey" xml:"TagKey"`
-	TagValue string `json:"TagValue" xml:"TagValue"`
+	RequestId          string                                `json:"RequestId" xml:"RequestId"`
+	Success            bool                                  `json:"Success" xml:"Success"`
+	ErrorMessage       string                                `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code               string                                `json:"Code" xml:"Code"`
+	InvalidProductTags InvalidProductTagsInCreateProductTags `json:"InvalidProductTags" xml:"InvalidProductTags"`
 }
 
 // CreateCreateProductTagsRequest creates a request to invoke CreateProductTags API

+ 2 - 3
services/iot/create_product_topic.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) CreateProductTopicWithCallback(request *CreateProductTopic
 // CreateProductTopicRequest is the request struct for api CreateProductTopic
 type CreateProductTopicRequest struct {
 	*requests.RpcRequest
-	AccessKeyId    string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId  string `position:"Query" name:"IotInstanceId"`
 	ProductKey     string `position:"Query" name:"ProductKey"`
 	TopicShortName string `position:"Query" name:"TopicShortName"`

+ 7 - 8
services/iot/create_rule.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,16 +76,15 @@ func (client *Client) CreateRuleWithCallback(request *CreateRuleRequest, callbac
 // CreateRuleRequest is the request struct for api CreateRule
 type CreateRuleRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	Select        string           `position:"Query" name:"Select"`
-	ShortTopic    string           `position:"Query" name:"ShortTopic"`
-	Where         string           `position:"Query" name:"Where"`
-	ProductKey    string           `position:"Query" name:"ProductKey"`
-	Name          string           `position:"Query" name:"Name"`
 	RuleDesc      string           `position:"Query" name:"RuleDesc"`
 	DataType      string           `position:"Query" name:"DataType"`
+	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
+	Name          string           `position:"Query" name:"Name"`
+	Where         string           `position:"Query" name:"Where"`
+	ProductKey    string           `position:"Query" name:"ProductKey"`
 	TopicType     requests.Integer `position:"Query" name:"TopicType"`
+	ShortTopic    string           `position:"Query" name:"ShortTopic"`
 }
 
 // CreateRuleResponse is the response struct for api CreateRule

+ 3 - 4
services/iot/create_rule_action.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,10 @@ func (client *Client) CreateRuleActionWithCallback(request *CreateRuleActionRequ
 // CreateRuleActionRequest is the request struct for api CreateRuleAction
 type CreateRuleActionRequest struct {
 	*requests.RpcRequest
-	AccessKeyId     string           `position:"Query" name:"AccessKeyId"`
+	Configuration   string           `position:"Query" name:"Configuration"`
 	IotInstanceId   string           `position:"Query" name:"IotInstanceId"`
 	RuleId          requests.Integer `position:"Query" name:"RuleId"`
 	Type            string           `position:"Query" name:"Type"`
-	Configuration   string           `position:"Query" name:"Configuration"`
 	ErrorActionFlag requests.Boolean `position:"Query" name:"ErrorActionFlag"`
 }
 

+ 11 - 13
services/iot/create_topic_route_table.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,22 +76,20 @@ func (client *Client) CreateTopicRouteTableWithCallback(request *CreateTopicRout
 // CreateTopicRouteTableRequest is the request struct for api CreateTopicRouteTable
 type CreateTopicRouteTableRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string   `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string   `position:"Query" name:"IotInstanceId"`
-	RegionId      string   `position:"Query" name:"RegionId"`
-	SrcTopic      string   `position:"Query" name:"SrcTopic"`
-	DstTopic      []string `position:"Query" name:"DstTopic" type:"Repeated"`
+	DstTopic      *[]string `position:"Query" name:"DstTopic"  type:"Repeated"`
+	IotInstanceId string    `position:"Query" name:"IotInstanceId"`
+	SrcTopic      string    `position:"Query" name:"SrcTopic"`
 }
 
 // CreateTopicRouteTableResponse is the response struct for api CreateTopicRouteTable
 type CreateTopicRouteTableResponse struct {
 	*responses.BaseResponse
-	RequestId     string   `json:"RequestId" xml:"RequestId"`
-	Success       bool     `json:"Success" xml:"Success"`
-	Code          string   `json:"Code" xml:"Code"`
-	IsAllSucceed  bool     `json:"IsAllSucceed" xml:"IsAllSucceed"`
-	ErrorMessage  string   `json:"ErrorMessage" xml:"ErrorMessage"`
-	FailureTopics []string `json:"FailureTopics" xml:"FailureTopics"`
+	RequestId     string                               `json:"RequestId" xml:"RequestId"`
+	Success       bool                                 `json:"Success" xml:"Success"`
+	Code          string                               `json:"Code" xml:"Code"`
+	IsAllSucceed  bool                                 `json:"IsAllSucceed" xml:"IsAllSucceed"`
+	ErrorMessage  string                               `json:"ErrorMessage" xml:"ErrorMessage"`
+	FailureTopics FailureTopicsInCreateTopicRouteTable `json:"FailureTopics" xml:"FailureTopics"`
 }
 
 // CreateCreateTopicRouteTableRequest creates a request to invoke CreateTopicRouteTable API

+ 4 - 5
services/iot/delete_device.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,10 @@ func (client *Client) DeleteDeviceWithCallback(request *DeleteDeviceRequest, cal
 // DeleteDeviceRequest is the request struct for api DeleteDevice
 type DeleteDeviceRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 }
 
 // DeleteDeviceResponse is the response struct for api DeleteDevice

+ 4 - 5
services/iot/delete_device_file.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,12 +76,11 @@ func (client *Client) DeleteDeviceFileWithCallback(request *DeleteDeviceFileRequ
 // DeleteDeviceFileRequest is the request struct for api DeleteDeviceFile
 type DeleteDeviceFileRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
+	IotId         string `position:"Query" name:"IotId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 	FileId        string `position:"Query" name:"FileId"`
-	IotId         string `position:"Query" name:"IotId"`
 }
 
 // DeleteDeviceFileResponse is the response struct for api DeleteDeviceFile

+ 2 - 3
services/iot/delete_device_group.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) DeleteDeviceGroupWithCallback(request *DeleteDeviceGroupRe
 // DeleteDeviceGroupRequest is the request struct for api DeleteDeviceGroup
 type DeleteDeviceGroupRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	GroupId       string `position:"Query" name:"GroupId"`
 }

+ 3 - 4
services/iot/delete_device_prop.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,9 +76,8 @@ func (client *Client) DeleteDevicePropWithCallback(request *DeleteDevicePropRequ
 // DeleteDevicePropRequest is the request struct for api DeleteDeviceProp
 type DeleteDevicePropRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
 	PropKey       string `position:"Query" name:"PropKey"`

+ 2 - 3
services/iot/delete_product.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) DeleteProductWithCallback(request *DeleteProductRequest, c
 // DeleteProductRequest is the request struct for api DeleteProduct
 type DeleteProductRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
 }

+ 5 - 6
services/iot/delete_product_tags.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,10 +76,9 @@ func (client *Client) DeleteProductTagsWithCallback(request *DeleteProductTagsRe
 // DeleteProductTagsRequest is the request struct for api DeleteProductTags
 type DeleteProductTagsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string   `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string   `position:"Query" name:"IotInstanceId"`
-	ProductKey    string   `position:"Query" name:"ProductKey"`
-	ProductTagKey []string `position:"Query" name:"ProductTagKey" type:"Repeated"`
+	IotInstanceId string    `position:"Query" name:"IotInstanceId"`
+	ProductTagKey *[]string `position:"Query" name:"ProductTagKey"  type:"Repeated"`
+	ProductKey    string    `position:"Query" name:"ProductKey"`
 }
 
 // DeleteProductTagsResponse is the response struct for api DeleteProductTags

+ 3 - 4
services/iot/delete_product_topic.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,9 +76,8 @@ func (client *Client) DeleteProductTopicWithCallback(request *DeleteProductTopic
 // DeleteProductTopicRequest is the request struct for api DeleteProductTopic
 type DeleteProductTopicRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	TopicId       string `position:"Query" name:"TopicId"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 }
 
 // DeleteProductTopicResponse is the response struct for api DeleteProductTopic

+ 2 - 3
services/iot/delete_rule.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) DeleteRuleWithCallback(request *DeleteRuleRequest, callbac
 // DeleteRuleRequest is the request struct for api DeleteRule
 type DeleteRuleRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	RuleId        requests.Integer `position:"Query" name:"RuleId"`
 }

+ 2 - 3
services/iot/delete_rule_action.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) DeleteRuleActionWithCallback(request *DeleteRuleActionRequ
 // DeleteRuleActionRequest is the request struct for api DeleteRuleAction
 type DeleteRuleActionRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	ActionId      requests.Integer `position:"Query" name:"ActionId"`
 }

+ 11 - 13
services/iot/delete_topic_route_table.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,22 +76,20 @@ func (client *Client) DeleteTopicRouteTableWithCallback(request *DeleteTopicRout
 // DeleteTopicRouteTableRequest is the request struct for api DeleteTopicRouteTable
 type DeleteTopicRouteTableRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string   `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string   `position:"Query" name:"IotInstanceId"`
-	RegionId      string   `position:"Query" name:"RegionId"`
-	SrcTopic      string   `position:"Query" name:"SrcTopic"`
-	DstTopic      []string `position:"Query" name:"DstTopic" type:"Repeated"`
+	DstTopic      *[]string `position:"Query" name:"DstTopic"  type:"Repeated"`
+	IotInstanceId string    `position:"Query" name:"IotInstanceId"`
+	SrcTopic      string    `position:"Query" name:"SrcTopic"`
 }
 
 // DeleteTopicRouteTableResponse is the response struct for api DeleteTopicRouteTable
 type DeleteTopicRouteTableResponse struct {
 	*responses.BaseResponse
-	RequestId     string   `json:"RequestId" xml:"RequestId"`
-	Success       bool     `json:"Success" xml:"Success"`
-	Code          string   `json:"Code" xml:"Code"`
-	IsAllSucceed  bool     `json:"IsAllSucceed" xml:"IsAllSucceed"`
-	ErrorMessage  string   `json:"ErrorMessage" xml:"ErrorMessage"`
-	FailureTopics []string `json:"FailureTopics" xml:"FailureTopics"`
+	RequestId     string                               `json:"RequestId" xml:"RequestId"`
+	Success       bool                                 `json:"Success" xml:"Success"`
+	Code          string                               `json:"Code" xml:"Code"`
+	IsAllSucceed  bool                                 `json:"IsAllSucceed" xml:"IsAllSucceed"`
+	ErrorMessage  string                               `json:"ErrorMessage" xml:"ErrorMessage"`
+	FailureTopics FailureTopicsInDeleteTopicRouteTable `json:"FailureTopics" xml:"FailureTopics"`
 }
 
 // CreateDeleteTopicRouteTableRequest creates a request to invoke DeleteTopicRouteTable API

+ 4 - 5
services/iot/disable_thing.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,10 @@ func (client *Client) DisableThingWithCallback(request *DisableThingRequest, cal
 // DisableThingRequest is the request struct for api DisableThing
 type DisableThingRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 }
 
 // DisableThingResponse is the response struct for api DisableThing

+ 4 - 5
services/iot/enable_thing.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,10 @@ func (client *Client) EnableThingWithCallback(request *EnableThingRequest, callb
 // EnableThingRequest is the request struct for api EnableThing
 type EnableThingRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 }
 
 // EnableThingResponse is the response struct for api EnableThing

+ 107 - 0
services/iot/get_data_api_service_detail.go

@@ -0,0 +1,107 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetDataAPIServiceDetail invokes the iot.GetDataAPIServiceDetail API synchronously
+// api document: https://help.aliyun.com/api/iot/getdataapiservicedetail.html
+func (client *Client) GetDataAPIServiceDetail(request *GetDataAPIServiceDetailRequest) (response *GetDataAPIServiceDetailResponse, err error) {
+	response = CreateGetDataAPIServiceDetailResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetDataAPIServiceDetailWithChan invokes the iot.GetDataAPIServiceDetail API asynchronously
+// api document: https://help.aliyun.com/api/iot/getdataapiservicedetail.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetDataAPIServiceDetailWithChan(request *GetDataAPIServiceDetailRequest) (<-chan *GetDataAPIServiceDetailResponse, <-chan error) {
+	responseChan := make(chan *GetDataAPIServiceDetailResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetDataAPIServiceDetail(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetDataAPIServiceDetailWithCallback invokes the iot.GetDataAPIServiceDetail API asynchronously
+// api document: https://help.aliyun.com/api/iot/getdataapiservicedetail.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetDataAPIServiceDetailWithCallback(request *GetDataAPIServiceDetailRequest, callback func(response *GetDataAPIServiceDetailResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetDataAPIServiceDetailResponse
+		var err error
+		defer close(result)
+		response, err = client.GetDataAPIServiceDetail(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetDataAPIServiceDetailRequest is the request struct for api GetDataAPIServiceDetail
+type GetDataAPIServiceDetailRequest struct {
+	*requests.RpcRequest
+	ApiSrn string `position:"Query" name:"ApiSrn"`
+}
+
+// GetDataAPIServiceDetailResponse is the response struct for api GetDataAPIServiceDetail
+type GetDataAPIServiceDetailResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code         string `json:"Code" xml:"Code"`
+	Data         Data   `json:"Data" xml:"Data"`
+}
+
+// CreateGetDataAPIServiceDetailRequest creates a request to invoke GetDataAPIServiceDetail API
+func CreateGetDataAPIServiceDetailRequest() (request *GetDataAPIServiceDetailRequest) {
+	request = &GetDataAPIServiceDetailRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Iot", "2018-01-20", "GetDataAPIServiceDetail", "iot", "openAPI")
+	return
+}
+
+// CreateGetDataAPIServiceDetailResponse creates a response to parse from GetDataAPIServiceDetail response
+func CreateGetDataAPIServiceDetailResponse() (response *GetDataAPIServiceDetailResponse) {
+	response = &GetDataAPIServiceDetailResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 4
services/iot/get_device_shadow.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,10 @@ func (client *Client) GetDeviceShadowWithCallback(request *GetDeviceShadowReques
 // GetDeviceShadowRequest is the request struct for api GetDeviceShadow
 type GetDeviceShadowRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
+	ShadowMessage string `position:"Query" name:"ShadowMessage"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
-	ShadowMessage string `position:"Query" name:"ShadowMessage"`
 }
 
 // GetDeviceShadowResponse is the response struct for api GetDeviceShadow

+ 9 - 14
services/iot/get_device_status.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,25 +76,20 @@ func (client *Client) GetDeviceStatusWithCallback(request *GetDeviceStatusReques
 // GetDeviceStatusRequest is the request struct for api GetDeviceStatus
 type GetDeviceStatusRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 }
 
 // GetDeviceStatusResponse is the response struct for api GetDeviceStatus
 type GetDeviceStatusResponse struct {
 	*responses.BaseResponse
-	RequestId    string               `json:"RequestId" xml:"RequestId"`
-	Success      bool                 `json:"Success" xml:"Success"`
-	Code         string               `json:"Code" xml:"Code"`
-	ErrorMessage string               `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         GetDeviceStatusData0 `json:"Data" xml:"Data"`
-}
-
-type GetDeviceStatusData0 struct {
-	Status string `json:"Status" xml:"Status"`
+	RequestId    string                `json:"RequestId" xml:"RequestId"`
+	Success      bool                  `json:"Success" xml:"Success"`
+	Code         string                `json:"Code" xml:"Code"`
+	ErrorMessage string                `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInGetDeviceStatus `json:"Data" xml:"Data"`
 }
 
 // CreateGetDeviceStatusRequest creates a request to invoke GetDeviceStatus API

+ 9 - 29
services/iot/get_gateway_by_sub_device.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,40 +76,20 @@ func (client *Client) GetGatewayBySubDeviceWithCallback(request *GetGatewayBySub
 // GetGatewayBySubDeviceRequest is the request struct for api GetGatewayBySubDevice
 type GetGatewayBySubDeviceRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
+	IotId         string `position:"Query" name:"IotId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
-	IotId         string `position:"Query" name:"IotId"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 }
 
 // GetGatewayBySubDeviceResponse is the response struct for api GetGatewayBySubDevice
 type GetGatewayBySubDeviceResponse struct {
 	*responses.BaseResponse
-	RequestId    string                     `json:"RequestId" xml:"RequestId"`
-	Success      bool                       `json:"Success" xml:"Success"`
-	Code         string                     `json:"Code" xml:"Code"`
-	ErrorMessage string                     `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         GetGatewayBySubDeviceData0 `json:"Data" xml:"Data"`
-}
-
-type GetGatewayBySubDeviceData0 struct {
-	ProductKey      string `json:"ProductKey" xml:"ProductKey"`
-	ProductName     string `json:"ProductName" xml:"ProductName"`
-	DeviceSecret    string `json:"DeviceSecret" xml:"DeviceSecret"`
-	DeviceName      string `json:"DeviceName" xml:"DeviceName"`
-	FirmwareVersion string `json:"FirmwareVersion" xml:"FirmwareVersion"`
-	GmtCreate       string `json:"GmtCreate" xml:"GmtCreate"`
-	UtcCreate       string `json:"UtcCreate" xml:"UtcCreate"`
-	GmtActive       string `json:"GmtActive" xml:"GmtActive"`
-	UtcActive       string `json:"UtcActive" xml:"UtcActive"`
-	GmtOnline       string `json:"GmtOnline" xml:"GmtOnline"`
-	UtcOnline       string `json:"UtcOnline" xml:"UtcOnline"`
-	Status          string `json:"Status" xml:"Status"`
-	IpAddress       string `json:"IpAddress" xml:"IpAddress"`
-	NodeType        string `json:"NodeType" xml:"NodeType"`
-	Region          string `json:"Region" xml:"Region"`
-	IotId           string `json:"IotId" xml:"IotId"`
+	RequestId    string                      `json:"RequestId" xml:"RequestId"`
+	Success      bool                        `json:"Success" xml:"Success"`
+	Code         string                      `json:"Code" xml:"Code"`
+	ErrorMessage string                      `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInGetGatewayBySubDevice `json:"Data" xml:"Data"`
 }
 
 // CreateGetGatewayBySubDeviceRequest creates a request to invoke GetGatewayBySubDevice API

+ 11 - 12
services/iot/get_lora_nodes_task.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) GetLoraNodesTaskWithCallback(request *GetLoraNodesTaskRequ
 // GetLoraNodesTaskRequest is the request struct for api GetLoraNodesTask
 type GetLoraNodesTaskRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	TaskId        string `position:"Query" name:"TaskId"`
 }
@@ -84,15 +83,15 @@ type GetLoraNodesTaskRequest struct {
 // GetLoraNodesTaskResponse is the response struct for api GetLoraNodesTask
 type GetLoraNodesTaskResponse struct {
 	*responses.BaseResponse
-	RequestId      string   `json:"RequestId" xml:"RequestId"`
-	Success        bool     `json:"Success" xml:"Success"`
-	Code           string   `json:"Code" xml:"Code"`
-	ErrorMessage   string   `json:"ErrorMessage" xml:"ErrorMessage"`
-	TaskId         string   `json:"TaskId" xml:"TaskId"`
-	TaskState      string   `json:"TaskState" xml:"TaskState"`
-	TotalCount     int64    `json:"TotalCount" xml:"TotalCount"`
-	SuccessCount   int64    `json:"SuccessCount" xml:"SuccessCount"`
-	SuccessDevEuis []string `json:"SuccessDevEuis" xml:"SuccessDevEuis"`
+	RequestId      string                           `json:"RequestId" xml:"RequestId"`
+	Success        bool                             `json:"Success" xml:"Success"`
+	Code           string                           `json:"Code" xml:"Code"`
+	ErrorMessage   string                           `json:"ErrorMessage" xml:"ErrorMessage"`
+	TaskId         string                           `json:"TaskId" xml:"TaskId"`
+	TaskState      string                           `json:"TaskState" xml:"TaskState"`
+	TotalCount     int64                            `json:"TotalCount" xml:"TotalCount"`
+	SuccessCount   int64                            `json:"SuccessCount" xml:"SuccessCount"`
+	SuccessDevEuis SuccessDevEuisInGetLoraNodesTask `json:"SuccessDevEuis" xml:"SuccessDevEuis"`
 }
 
 // CreateGetLoraNodesTaskRequest creates a request to invoke GetLoraNodesTask API

+ 11 - 12
services/iot/get_nodes_adding_task.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) GetNodesAddingTaskWithCallback(request *GetNodesAddingTask
 // GetNodesAddingTaskRequest is the request struct for api GetNodesAddingTask
 type GetNodesAddingTaskRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	TaskId        string `position:"Query" name:"TaskId"`
 }
@@ -84,15 +83,15 @@ type GetNodesAddingTaskRequest struct {
 // GetNodesAddingTaskResponse is the response struct for api GetNodesAddingTask
 type GetNodesAddingTaskResponse struct {
 	*responses.BaseResponse
-	RequestId      string   `json:"RequestId" xml:"RequestId"`
-	Success        bool     `json:"Success" xml:"Success"`
-	Code           string   `json:"Code" xml:"Code"`
-	ErrorMessage   string   `json:"ErrorMessage" xml:"ErrorMessage"`
-	TaskId         string   `json:"TaskId" xml:"TaskId"`
-	TaskState      string   `json:"TaskState" xml:"TaskState"`
-	TotalCount     int64    `json:"TotalCount" xml:"TotalCount"`
-	SuccessCount   int64    `json:"SuccessCount" xml:"SuccessCount"`
-	SuccessDevEuis []string `json:"SuccessDevEuis" xml:"SuccessDevEuis"`
+	RequestId      string                             `json:"RequestId" xml:"RequestId"`
+	Success        bool                               `json:"Success" xml:"Success"`
+	Code           string                             `json:"Code" xml:"Code"`
+	ErrorMessage   string                             `json:"ErrorMessage" xml:"ErrorMessage"`
+	TaskId         string                             `json:"TaskId" xml:"TaskId"`
+	TaskState      string                             `json:"TaskState" xml:"TaskState"`
+	TotalCount     int64                              `json:"TotalCount" xml:"TotalCount"`
+	SuccessCount   int64                              `json:"SuccessCount" xml:"SuccessCount"`
+	SuccessDevEuis SuccessDevEuisInGetNodesAddingTask `json:"SuccessDevEuis" xml:"SuccessDevEuis"`
 }
 
 // CreateGetNodesAddingTaskRequest creates a request to invoke GetNodesAddingTask API

+ 7 - 27
services/iot/get_rule.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) GetRuleWithCallback(request *GetRuleRequest, callback func
 // GetRuleRequest is the request struct for api GetRule
 type GetRuleRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	RuleId        requests.Integer `position:"Query" name:"RuleId"`
 }
@@ -84,30 +83,11 @@ type GetRuleRequest struct {
 // GetRuleResponse is the response struct for api GetRule
 type GetRuleResponse struct {
 	*responses.BaseResponse
-	RequestId    string           `json:"RequestId" xml:"RequestId"`
-	Success      bool             `json:"Success" xml:"Success"`
-	Code         string           `json:"Code" xml:"Code"`
-	ErrorMessage string           `json:"ErrorMessage" xml:"ErrorMessage"`
-	RuleInfo     GetRuleRuleInfo0 `json:"RuleInfo" xml:"RuleInfo"`
-}
-
-type GetRuleRuleInfo0 struct {
-	Id           int64  `json:"Id" xml:"Id"`
-	Select       string `json:"Select" xml:"Select"`
-	Topic        string `json:"Topic" xml:"Topic"`
-	ShortTopic   string `json:"ShortTopic" xml:"ShortTopic"`
-	Where        string `json:"Where" xml:"Where"`
-	Status       string `json:"Status" xml:"Status"`
-	CreateUserId int64  `json:"CreateUserId" xml:"CreateUserId"`
-	ProductKey   string `json:"ProductKey" xml:"ProductKey"`
-	Name         string `json:"Name" xml:"Name"`
-	RuleDesc     string `json:"RuleDesc" xml:"RuleDesc"`
-	DataType     string `json:"DataType" xml:"DataType"`
-	Created      string `json:"Created" xml:"Created"`
-	UtcCreated   string `json:"UtcCreated" xml:"UtcCreated"`
-	Modified     string `json:"Modified" xml:"Modified"`
-	UtcModified  string `json:"UtcModified" xml:"UtcModified"`
-	TopicType    int    `json:"TopicType" xml:"TopicType"`
+	RequestId    string   `json:"RequestId" xml:"RequestId"`
+	Success      bool     `json:"Success" xml:"Success"`
+	Code         string   `json:"Code" xml:"Code"`
+	ErrorMessage string   `json:"ErrorMessage" xml:"ErrorMessage"`
+	RuleInfo     RuleInfo `json:"RuleInfo" xml:"RuleInfo"`
 }
 
 // CreateGetRuleRequest creates a request to invoke GetRule API

+ 7 - 16
services/iot/get_rule_action.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) GetRuleActionWithCallback(request *GetRuleActionRequest, c
 // GetRuleActionRequest is the request struct for api GetRuleAction
 type GetRuleActionRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	ActionId      requests.Integer `position:"Query" name:"ActionId"`
 }
@@ -84,19 +83,11 @@ type GetRuleActionRequest struct {
 // GetRuleActionResponse is the response struct for api GetRuleAction
 type GetRuleActionResponse struct {
 	*responses.BaseResponse
-	RequestId      string                       `json:"RequestId" xml:"RequestId"`
-	Success        bool                         `json:"Success" xml:"Success"`
-	Code           string                       `json:"Code" xml:"Code"`
-	ErrorMessage   string                       `json:"ErrorMessage" xml:"ErrorMessage"`
-	RuleActionInfo GetRuleActionRuleActionInfo0 `json:"RuleActionInfo" xml:"RuleActionInfo"`
-}
-
-type GetRuleActionRuleActionInfo0 struct {
-	Id              int64  `json:"Id" xml:"Id"`
-	RuleId          int64  `json:"RuleId" xml:"RuleId"`
-	Type            string `json:"Type" xml:"Type"`
-	Configuration   string `json:"Configuration" xml:"Configuration"`
-	ErrorActionFlag bool   `json:"ErrorActionFlag" xml:"ErrorActionFlag"`
+	RequestId      string         `json:"RequestId" xml:"RequestId"`
+	Success        bool           `json:"Success" xml:"Success"`
+	Code           string         `json:"Code" xml:"Code"`
+	ErrorMessage   string         `json:"ErrorMessage" xml:"ErrorMessage"`
+	RuleActionInfo RuleActionInfo `json:"RuleActionInfo" xml:"RuleActionInfo"`
 }
 
 // CreateGetRuleActionRequest creates a request to invoke GetRuleAction API

+ 10 - 29
services/iot/get_thing_topo.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,41 +76,22 @@ func (client *Client) GetThingTopoWithCallback(request *GetThingTopoRequest, cal
 // GetThingTopoRequest is the request struct for api GetThingTopo
 type GetThingTopoRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
-	ProductKey    string           `position:"Query" name:"ProductKey"`
-	DeviceName    string           `position:"Query" name:"DeviceName"`
 	IotId         string           `position:"Query" name:"IotId"`
 	PageNo        requests.Integer `position:"Query" name:"PageNo"`
+	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	DeviceName    string           `position:"Query" name:"DeviceName"`
+	ProductKey    string           `position:"Query" name:"ProductKey"`
 }
 
 // GetThingTopoResponse is the response struct for api GetThingTopo
 type GetThingTopoResponse struct {
 	*responses.BaseResponse
-	RequestId    string            `json:"RequestId" xml:"RequestId"`
-	Success      bool              `json:"Success" xml:"Success"`
-	Code         string            `json:"Code" xml:"Code"`
-	ErrorMessage string            `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         GetThingTopoData0 `json:"Data" xml:"Data"`
-}
-
-type GetThingTopoData0 struct {
-	Total       int64             `json:"Total" xml:"Total"`
-	CurrentPage int               `json:"CurrentPage" xml:"CurrentPage"`
-	PageSize    int               `json:"PageSize" xml:"PageSize"`
-	PageCount   int64             `json:"PageCount" xml:"PageCount"`
-	List        GetThingTopoList1 `json:"List" xml:"List"`
-}
-
-type GetThingTopoList1 struct {
-	DeviceInfo []GetThingTopoDeviceInfo2 `json:"DeviceInfo" xml:"DeviceInfo"`
-}
-
-type GetThingTopoDeviceInfo2 struct {
-	IotId      string `json:"IotId" xml:"IotId"`
-	ProductKey string `json:"ProductKey" xml:"ProductKey"`
-	DeviceName string `json:"DeviceName" xml:"DeviceName"`
+	RequestId    string             `json:"RequestId" xml:"RequestId"`
+	Success      bool               `json:"Success" xml:"Success"`
+	Code         string             `json:"Code" xml:"Code"`
+	ErrorMessage string             `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInGetThingTopo `json:"Data" xml:"Data"`
 }
 
 // CreateGetThingTopoRequest creates a request to invoke GetThingTopo API

+ 116 - 0
services/iot/invoke_data_api_service.go

@@ -0,0 +1,116 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// InvokeDataAPIService invokes the iot.InvokeDataAPIService API synchronously
+// api document: https://help.aliyun.com/api/iot/invokedataapiservice.html
+func (client *Client) InvokeDataAPIService(request *InvokeDataAPIServiceRequest) (response *InvokeDataAPIServiceResponse, err error) {
+	response = CreateInvokeDataAPIServiceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// InvokeDataAPIServiceWithChan invokes the iot.InvokeDataAPIService API asynchronously
+// api document: https://help.aliyun.com/api/iot/invokedataapiservice.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) InvokeDataAPIServiceWithChan(request *InvokeDataAPIServiceRequest) (<-chan *InvokeDataAPIServiceResponse, <-chan error) {
+	responseChan := make(chan *InvokeDataAPIServiceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.InvokeDataAPIService(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// InvokeDataAPIServiceWithCallback invokes the iot.InvokeDataAPIService API asynchronously
+// api document: https://help.aliyun.com/api/iot/invokedataapiservice.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) InvokeDataAPIServiceWithCallback(request *InvokeDataAPIServiceRequest, callback func(response *InvokeDataAPIServiceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *InvokeDataAPIServiceResponse
+		var err error
+		defer close(result)
+		response, err = client.InvokeDataAPIService(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// InvokeDataAPIServiceRequest is the request struct for api InvokeDataAPIService
+type InvokeDataAPIServiceRequest struct {
+	*requests.RpcRequest
+	ApiSrn string                       `position:"Query" name:"ApiSrn"`
+	Param  *[]InvokeDataAPIServiceParam `position:"Body" name:"Param"  type:"Repeated"`
+}
+
+// InvokeDataAPIServiceParam is a repeated param struct in InvokeDataAPIServiceRequest
+type InvokeDataAPIServiceParam struct {
+	ListParamType  string    `name:"ListParamType"`
+	ListParamValue *[]string `name:"ListParamValue" type:"Repeated"`
+	ParamValue     string    `name:"ParamValue"`
+	ParamName      string    `name:"ParamName"`
+}
+
+// InvokeDataAPIServiceResponse is the response struct for api InvokeDataAPIService
+type InvokeDataAPIServiceResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code         string `json:"Code" xml:"Code"`
+	Data         Data   `json:"Data" xml:"Data"`
+}
+
+// CreateInvokeDataAPIServiceRequest creates a request to invoke InvokeDataAPIService API
+func CreateInvokeDataAPIServiceRequest() (request *InvokeDataAPIServiceRequest) {
+	request = &InvokeDataAPIServiceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Iot", "2018-01-20", "InvokeDataAPIService", "iot", "openAPI")
+	return
+}
+
+// CreateInvokeDataAPIServiceResponse creates a response to parse from InvokeDataAPIService response
+func CreateInvokeDataAPIServiceResponse() (response *InvokeDataAPIServiceResponse) {
+	response = &InvokeDataAPIServiceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 11 - 17
services/iot/invoke_thing_service.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,28 +76,22 @@ func (client *Client) InvokeThingServiceWithCallback(request *InvokeThingService
 // InvokeThingServiceRequest is the request struct for api InvokeThingService
 type InvokeThingServiceRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
+	Args          string `position:"Query" name:"Args"`
+	Identifier    string `position:"Query" name:"Identifier"`
 	IotId         string `position:"Query" name:"IotId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
-	Identifier    string `position:"Query" name:"Identifier"`
-	Args          string `position:"Query" name:"Args"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 }
 
 // InvokeThingServiceResponse is the response struct for api InvokeThingService
 type InvokeThingServiceResponse struct {
 	*responses.BaseResponse
-	RequestId    string                  `json:"RequestId" xml:"RequestId"`
-	Success      bool                    `json:"Success" xml:"Success"`
-	ErrorMessage string                  `json:"ErrorMessage" xml:"ErrorMessage"`
-	Code         string                  `json:"Code" xml:"Code"`
-	Data         InvokeThingServiceData0 `json:"Data" xml:"Data"`
-}
-
-type InvokeThingServiceData0 struct {
-	Result    string `json:"Result" xml:"Result"`
-	MessageId string `json:"MessageId" xml:"MessageId"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code         string `json:"Code" xml:"Code"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateInvokeThingServiceRequest creates a request to invoke InvokeThingService API

+ 7 - 8
services/iot/invoke_things_service.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,12 +76,11 @@ func (client *Client) InvokeThingsServiceWithCallback(request *InvokeThingsServi
 // InvokeThingsServiceRequest is the request struct for api InvokeThingsService
 type InvokeThingsServiceRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string   `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string   `position:"Query" name:"IotInstanceId"`
-	ProductKey    string   `position:"Query" name:"ProductKey"`
-	DeviceName    []string `position:"Query" name:"DeviceName" type:"Repeated"`
-	Identifier    string   `position:"Query" name:"Identifier"`
-	Args          string   `position:"Query" name:"Args"`
+	Args          string    `position:"Query" name:"Args"`
+	Identifier    string    `position:"Query" name:"Identifier"`
+	IotInstanceId string    `position:"Query" name:"IotInstanceId"`
+	DeviceName    *[]string `position:"Query" name:"DeviceName"  type:"Repeated"`
+	ProductKey    string    `position:"Query" name:"ProductKey"`
 }
 
 // InvokeThingsServiceResponse is the response struct for api InvokeThingsService

+ 11 - 23
services/iot/list_product_by_tags.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,38 +76,26 @@ func (client *Client) ListProductByTagsWithCallback(request *ListProductByTagsRe
 // ListProductByTagsRequest is the request struct for api ListProductByTags
 type ListProductByTagsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string                         `position:"Query" name:"AccessKeyId"`
+	ProductTag    *[]ListProductByTagsProductTag `position:"Query" name:"ProductTag"  type:"Repeated"`
 	IotInstanceId string                         `position:"Query" name:"IotInstanceId"`
-	CurrentPage   requests.Integer               `position:"Query" name:"CurrentPage"`
 	PageSize      requests.Integer               `position:"Query" name:"PageSize"`
-	ProductTag    *[]ListProductByTagsProductTag `position:"Query" name:"ProductTag" type:"Repeated"`
+	CurrentPage   requests.Integer               `position:"Query" name:"CurrentPage"`
 }
 
+// ListProductByTagsProductTag is a repeated param struct in ListProductByTagsRequest
 type ListProductByTagsProductTag struct {
-	TagKey   string `name:"TagKey"`
 	TagValue string `name:"TagValue"`
+	TagKey   string `name:"TagKey"`
 }
 
 // ListProductByTagsResponse is the response struct for api ListProductByTags
 type ListProductByTagsResponse struct {
 	*responses.BaseResponse
-	RequestId    string                         `json:"RequestId" xml:"RequestId"`
-	Success      bool                           `json:"Success" xml:"Success"`
-	ErrorMessage string                         `json:"ErrorMessage" xml:"ErrorMessage"`
-	Code         string                         `json:"Code" xml:"Code"`
-	ProductInfos ListProductByTagsProductInfos0 `json:"ProductInfos" xml:"ProductInfos"`
-}
-
-type ListProductByTagsProductInfos0 struct {
-	ProductInfo []ListProductByTagsProductInfo1 `json:"ProductInfo" xml:"ProductInfo"`
-}
-
-type ListProductByTagsProductInfo1 struct {
-	ProductName string `json:"ProductName" xml:"ProductName"`
-	ProductKey  string `json:"ProductKey" xml:"ProductKey"`
-	CreateTime  int64  `json:"CreateTime" xml:"CreateTime"`
-	Description string `json:"Description" xml:"Description"`
-	NodeType    int    `json:"NodeType" xml:"NodeType"`
+	RequestId    string       `json:"RequestId" xml:"RequestId"`
+	Success      bool         `json:"Success" xml:"Success"`
+	ErrorMessage string       `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code         string       `json:"Code" xml:"Code"`
+	ProductInfos ProductInfos `json:"ProductInfos" xml:"ProductInfos"`
 }
 
 // CreateListProductByTagsRequest creates a request to invoke ListProductByTags API

+ 7 - 17
services/iot/list_product_tags.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) ListProductTagsWithCallback(request *ListProductTagsReques
 // ListProductTagsRequest is the request struct for api ListProductTags
 type ListProductTagsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
 }
@@ -84,20 +83,11 @@ type ListProductTagsRequest struct {
 // ListProductTagsResponse is the response struct for api ListProductTags
 type ListProductTagsResponse struct {
 	*responses.BaseResponse
-	RequestId    string               `json:"RequestId" xml:"RequestId"`
-	Success      bool                 `json:"Success" xml:"Success"`
-	ErrorMessage string               `json:"ErrorMessage" xml:"ErrorMessage"`
-	Code         string               `json:"Code" xml:"Code"`
-	Data         ListProductTagsData0 `json:"Data" xml:"Data"`
-}
-
-type ListProductTagsData0 struct {
-	ProductTag []ListProductTagsProductTag1 `json:"ProductTag" xml:"ProductTag"`
-}
-
-type ListProductTagsProductTag1 struct {
-	TagKey   string `json:"TagKey" xml:"TagKey"`
-	TagValue string `json:"TagValue" xml:"TagValue"`
+	RequestId    string                `json:"RequestId" xml:"RequestId"`
+	Success      bool                  `json:"Success" xml:"Success"`
+	ErrorMessage string                `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code         string                `json:"Code" xml:"Code"`
+	Data         DataInListProductTags `json:"Data" xml:"Data"`
 }
 
 // CreateListProductTagsRequest creates a request to invoke ListProductTags API

+ 12 - 35
services/iot/list_rule.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,46 +76,23 @@ func (client *Client) ListRuleWithCallback(request *ListRuleRequest, callback fu
 // ListRuleRequest is the request struct for api ListRule
 type ListRuleRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
+	SearchName    string           `position:"Query" name:"SearchName"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
-	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
 	PageSize      requests.Integer `position:"Query" name:"PageSize"`
-	SearchName    string           `position:"Query" name:"SearchName"`
+	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
 }
 
 // ListRuleResponse is the response struct for api ListRule
 type ListRuleResponse struct {
 	*responses.BaseResponse
-	RequestId    string        `json:"RequestId" xml:"RequestId"`
-	Success      bool          `json:"Success" xml:"Success"`
-	Code         string        `json:"Code" xml:"Code"`
-	ErrorMessage string        `json:"ErrorMessage" xml:"ErrorMessage"`
-	PageSize     int           `json:"PageSize" xml:"PageSize"`
-	Page         int           `json:"Page" xml:"Page"`
-	Total        int           `json:"Total" xml:"Total"`
-	Data         ListRuleData0 `json:"Data" xml:"Data"`
-}
-
-type ListRuleData0 struct {
-	RuleInfo []ListRuleRuleInfo1 `json:"RuleInfo" xml:"RuleInfo"`
-}
-
-type ListRuleRuleInfo1 struct {
-	Id           int64  `json:"Id" xml:"Id"`
-	Select       string `json:"Select" xml:"Select"`
-	Topic        string `json:"Topic" xml:"Topic"`
-	ShortTopic   string `json:"ShortTopic" xml:"ShortTopic"`
-	Where        string `json:"Where" xml:"Where"`
-	Status       string `json:"Status" xml:"Status"`
-	CreateUserId int64  `json:"CreateUserId" xml:"CreateUserId"`
-	ProductKey   string `json:"ProductKey" xml:"ProductKey"`
-	Name         string `json:"Name" xml:"Name"`
-	DataType     string `json:"DataType" xml:"DataType"`
-	RuleDesc     string `json:"RuleDesc" xml:"RuleDesc"`
-	Created      string `json:"Created" xml:"Created"`
-	UtcCreated   string `json:"UtcCreated" xml:"UtcCreated"`
-	Modified     string `json:"Modified" xml:"Modified"`
-	UtcModified  string `json:"UtcModified" xml:"UtcModified"`
+	RequestId    string         `json:"RequestId" xml:"RequestId"`
+	Success      bool           `json:"Success" xml:"Success"`
+	Code         string         `json:"Code" xml:"Code"`
+	ErrorMessage string         `json:"ErrorMessage" xml:"ErrorMessage"`
+	PageSize     int            `json:"PageSize" xml:"PageSize"`
+	Page         int            `json:"Page" xml:"Page"`
+	Total        int            `json:"Total" xml:"Total"`
+	Data         DataInListRule `json:"Data" xml:"Data"`
 }
 
 // CreateListRuleRequest creates a request to invoke ListRule API

+ 7 - 20
services/iot/list_rule_actions.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) ListRuleActionsWithCallback(request *ListRuleActionsReques
 // ListRuleActionsRequest is the request struct for api ListRuleActions
 type ListRuleActionsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	RuleId        requests.Integer `position:"Query" name:"RuleId"`
 }
@@ -84,23 +83,11 @@ type ListRuleActionsRequest struct {
 // ListRuleActionsResponse is the response struct for api ListRuleActions
 type ListRuleActionsResponse struct {
 	*responses.BaseResponse
-	RequestId      string                         `json:"RequestId" xml:"RequestId"`
-	Success        bool                           `json:"Success" xml:"Success"`
-	Code           string                         `json:"Code" xml:"Code"`
-	ErrorMessage   string                         `json:"ErrorMessage" xml:"ErrorMessage"`
-	RuleActionList ListRuleActionsRuleActionList0 `json:"RuleActionList" xml:"RuleActionList"`
-}
-
-type ListRuleActionsRuleActionList0 struct {
-	RuleActionInfo []ListRuleActionsRuleActionInfo1 `json:"RuleActionInfo" xml:"RuleActionInfo"`
-}
-
-type ListRuleActionsRuleActionInfo1 struct {
-	Id              int64  `json:"Id" xml:"Id"`
-	RuleId          int64  `json:"RuleId" xml:"RuleId"`
-	Type            string `json:"Type" xml:"Type"`
-	Configuration   string `json:"Configuration" xml:"Configuration"`
-	ErrorActionFlag bool   `json:"ErrorActionFlag" xml:"ErrorActionFlag"`
+	RequestId      string         `json:"RequestId" xml:"RequestId"`
+	Success        bool           `json:"Success" xml:"Success"`
+	Code           string         `json:"Code" xml:"Code"`
+	ErrorMessage   string         `json:"ErrorMessage" xml:"ErrorMessage"`
+	RuleActionList RuleActionList `json:"RuleActionList" xml:"RuleActionList"`
 }
 
 // CreateListRuleActionsRequest creates a request to invoke ListRuleActions API

+ 10 - 15
services/iot/notify_add_thing_topo.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,26 +76,21 @@ func (client *Client) NotifyAddThingTopoWithCallback(request *NotifyAddThingTopo
 // NotifyAddThingTopoRequest is the request struct for api NotifyAddThingTopo
 type NotifyAddThingTopoRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
-	DeviceListStr string `position:"Query" name:"DeviceListStr"`
-	GwIotId       string `position:"Query" name:"GwIotId"`
 	GwProductKey  string `position:"Query" name:"GwProductKey"`
 	GwDeviceName  string `position:"Query" name:"GwDeviceName"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
+	GwIotId       string `position:"Query" name:"GwIotId"`
+	DeviceListStr string `position:"Query" name:"DeviceListStr"`
 }
 
 // NotifyAddThingTopoResponse is the response struct for api NotifyAddThingTopo
 type NotifyAddThingTopoResponse struct {
 	*responses.BaseResponse
-	RequestId    string                  `json:"RequestId" xml:"RequestId"`
-	Success      bool                    `json:"Success" xml:"Success"`
-	ErrorMessage string                  `json:"ErrorMessage" xml:"ErrorMessage"`
-	Code         string                  `json:"Code" xml:"Code"`
-	Data         NotifyAddThingTopoData0 `json:"Data" xml:"Data"`
-}
-
-type NotifyAddThingTopoData0 struct {
-	MessageId string `json:"MessageId" xml:"MessageId"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code         string `json:"Code" xml:"Code"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateNotifyAddThingTopoRequest creates a request to invoke NotifyAddThingTopo API

+ 5 - 6
services/iot/pub.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,12 +76,11 @@ func (client *Client) PubWithCallback(request *PubRequest, callback func(respons
 // PubRequest is the request struct for api Pub
 type PubRequest struct {
 	*requests.RpcRequest
-	AccessKeyId    string           `position:"Query" name:"AccessKeyId"`
-	IotInstanceId  string           `position:"Query" name:"IotInstanceId"`
-	ProductKey     string           `position:"Query" name:"ProductKey"`
-	Qos            requests.Integer `position:"Query" name:"Qos"`
 	TopicFullName  string           `position:"Query" name:"TopicFullName"`
+	Qos            requests.Integer `position:"Query" name:"Qos"`
 	MessageContent string           `position:"Query" name:"MessageContent"`
+	IotInstanceId  string           `position:"Query" name:"IotInstanceId"`
+	ProductKey     string           `position:"Query" name:"ProductKey"`
 }
 
 // PubResponse is the response struct for api Pub

+ 4 - 5
services/iot/pub_broadcast.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,10 @@ func (client *Client) PubBroadcastWithCallback(request *PubBroadcastRequest, cal
 // PubBroadcastRequest is the request struct for api PubBroadcast
 type PubBroadcastRequest struct {
 	*requests.RpcRequest
-	AccessKeyId    string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId  string `position:"Query" name:"IotInstanceId"`
-	ProductKey     string `position:"Query" name:"ProductKey"`
 	TopicFullName  string `position:"Query" name:"TopicFullName"`
 	MessageContent string `position:"Query" name:"MessageContent"`
+	IotInstanceId  string `position:"Query" name:"IotInstanceId"`
+	ProductKey     string `position:"Query" name:"ProductKey"`
 }
 
 // PubBroadcastResponse is the response struct for api PubBroadcast

+ 16 - 34
services/iot/query_app_device_list.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,15 +76,16 @@ func (client *Client) QueryAppDeviceListWithCallback(request *QueryAppDeviceList
 // QueryAppDeviceListRequest is the request struct for api QueryAppDeviceList
 type QueryAppDeviceListRequest struct {
 	*requests.RpcRequest
+	ProductKeyList  *[]string                    `position:"Query" name:"ProductKeyList"  type:"Repeated"`
+	CategoryKeyList *[]string                    `position:"Query" name:"CategoryKeyList"  type:"Repeated"`
 	IotInstanceId   string                       `position:"Query" name:"IotInstanceId"`
-	CurrentPage     requests.Integer             `position:"Query" name:"CurrentPage"`
 	PageSize        requests.Integer             `position:"Query" name:"PageSize"`
-	ProductKeyList  []string                     `position:"Query" name:"ProductKeyList" type:"Repeated"`
-	CategoryKeyList []string                     `position:"Query" name:"CategoryKeyList" type:"Repeated"`
-	TagList         *[]QueryAppDeviceListTagList `position:"Query" name:"TagList" type:"Repeated"`
+	CurrentPage     requests.Integer             `position:"Query" name:"CurrentPage"`
 	AppKey          string                       `position:"Query" name:"AppKey"`
+	TagList         *[]QueryAppDeviceListTagList `position:"Query" name:"TagList"  type:"Repeated"`
 }
 
+// QueryAppDeviceListTagList is a repeated param struct in QueryAppDeviceListRequest
 type QueryAppDeviceListTagList struct {
 	TagName  string `name:"TagName"`
 	TagValue string `name:"TagValue"`
@@ -93,34 +94,15 @@ type QueryAppDeviceListTagList struct {
 // QueryAppDeviceListResponse is the response struct for api QueryAppDeviceList
 type QueryAppDeviceListResponse struct {
 	*responses.BaseResponse
-	RequestId    string                  `json:"RequestId" xml:"RequestId"`
-	Success      bool                    `json:"Success" xml:"Success"`
-	ErrorMessage string                  `json:"ErrorMessage" xml:"ErrorMessage"`
-	Code         string                  `json:"Code" xml:"Code"`
-	Page         int                     `json:"Page" xml:"Page"`
-	PageSize     int                     `json:"PageSize" xml:"PageSize"`
-	PageCount    int                     `json:"PageCount" xml:"PageCount"`
-	Total        int                     `json:"Total" xml:"Total"`
-	Data         QueryAppDeviceListData0 `json:"Data" xml:"Data"`
-}
-
-type QueryAppDeviceListData0 struct {
-	Data []QueryAppDeviceListData1 `json:"Data" xml:"Data"`
-}
-
-type QueryAppDeviceListData1 struct {
-	ProductName       string `json:"ProductName" xml:"ProductName"`
-	ProductKey        string `json:"ProductKey" xml:"ProductKey"`
-	DeviceName        string `json:"DeviceName" xml:"DeviceName"`
-	NodeType          int    `json:"NodeType" xml:"NodeType"`
-	Status            string `json:"Status" xml:"Status"`
-	ActiveTime        string `json:"ActiveTime" xml:"ActiveTime"`
-	LastOnlineTime    string `json:"LastOnlineTime" xml:"LastOnlineTime"`
-	CreateTime        string `json:"CreateTime" xml:"CreateTime"`
-	ChildDeviceCount  int64  `json:"ChildDeviceCount" xml:"ChildDeviceCount"`
-	UtcActiveTime     string `json:"UtcActiveTime" xml:"UtcActiveTime"`
-	UtcLastOnlineTime string `json:"UtcLastOnlineTime" xml:"UtcLastOnlineTime"`
-	UtcCreateTime     string `json:"UtcCreateTime" xml:"UtcCreateTime"`
+	RequestId    string                   `json:"RequestId" xml:"RequestId"`
+	Success      bool                     `json:"Success" xml:"Success"`
+	ErrorMessage string                   `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code         string                   `json:"Code" xml:"Code"`
+	Page         int                      `json:"Page" xml:"Page"`
+	PageSize     int                      `json:"PageSize" xml:"PageSize"`
+	PageCount    int                      `json:"PageCount" xml:"PageCount"`
+	Total        int                      `json:"Total" xml:"Total"`
+	Data         DataInQueryAppDeviceList `json:"Data" xml:"Data"`
 }
 
 // CreateQueryAppDeviceListRequest creates a request to invoke QueryAppDeviceList API

+ 8 - 15
services/iot/query_batch_register_device_status.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,26 +76,19 @@ func (client *Client) QueryBatchRegisterDeviceStatusWithCallback(request *QueryB
 // QueryBatchRegisterDeviceStatusRequest is the request struct for api QueryBatchRegisterDeviceStatus
 type QueryBatchRegisterDeviceStatusRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
+	ApplyId       requests.Integer `position:"Query" name:"ApplyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	ProductKey    string           `position:"Query" name:"ProductKey"`
-	ApplyId       requests.Integer `position:"Query" name:"ApplyId"`
 }
 
 // QueryBatchRegisterDeviceStatusResponse is the response struct for api QueryBatchRegisterDeviceStatus
 type QueryBatchRegisterDeviceStatusResponse struct {
 	*responses.BaseResponse
-	RequestId    string                              `json:"RequestId" xml:"RequestId"`
-	Success      bool                                `json:"Success" xml:"Success"`
-	Code         string                              `json:"Code" xml:"Code"`
-	ErrorMessage string                              `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryBatchRegisterDeviceStatusData0 `json:"Data" xml:"Data"`
-}
-
-type QueryBatchRegisterDeviceStatusData0 struct {
-	Status      string   `json:"Status" xml:"Status"`
-	ValidList   []string `json:"ValidList" xml:"ValidList"`
-	InvalidList []string `json:"InvalidList" xml:"InvalidList"`
+	RequestId    string                               `json:"RequestId" xml:"RequestId"`
+	Success      bool                                 `json:"Success" xml:"Success"`
+	Code         string                               `json:"Code" xml:"Code"`
+	ErrorMessage string                               `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInQueryBatchRegisterDeviceStatus `json:"Data" xml:"Data"`
 }
 
 // CreateQueryBatchRegisterDeviceStatusRequest creates a request to invoke QueryBatchRegisterDeviceStatus API

+ 12 - 32
services/iot/query_device.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,44 +76,24 @@ func (client *Client) QueryDeviceWithCallback(request *QueryDeviceRequest, callb
 // QueryDeviceRequest is the request struct for api QueryDevice
 type QueryDeviceRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
-	ProductKey    string           `position:"Query" name:"ProductKey"`
 	PageSize      requests.Integer `position:"Query" name:"PageSize"`
 	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
+	ProductKey    string           `position:"Query" name:"ProductKey"`
 }
 
 // QueryDeviceResponse is the response struct for api QueryDevice
 type QueryDeviceResponse struct {
 	*responses.BaseResponse
-	RequestId    string           `json:"RequestId" xml:"RequestId"`
-	Success      bool             `json:"Success" xml:"Success"`
-	Code         string           `json:"Code" xml:"Code"`
-	ErrorMessage string           `json:"ErrorMessage" xml:"ErrorMessage"`
-	Total        int              `json:"Total" xml:"Total"`
-	PageSize     int              `json:"PageSize" xml:"PageSize"`
-	PageCount    int              `json:"PageCount" xml:"PageCount"`
-	Page         int              `json:"Page" xml:"Page"`
-	Data         QueryDeviceData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceData0 struct {
-	DeviceInfo []QueryDeviceDeviceInfo1 `json:"DeviceInfo" xml:"DeviceInfo"`
-}
-
-type QueryDeviceDeviceInfo1 struct {
-	DeviceId     string `json:"DeviceId" xml:"DeviceId"`
-	DeviceSecret string `json:"DeviceSecret" xml:"DeviceSecret"`
-	ProductKey   string `json:"ProductKey" xml:"ProductKey"`
-	DeviceStatus string `json:"DeviceStatus" xml:"DeviceStatus"`
-	DeviceName   string `json:"DeviceName" xml:"DeviceName"`
-	DeviceType   string `json:"DeviceType" xml:"DeviceType"`
-	GmtCreate    string `json:"GmtCreate" xml:"GmtCreate"`
-	GmtModified  string `json:"GmtModified" xml:"GmtModified"`
-	UtcCreate    string `json:"UtcCreate" xml:"UtcCreate"`
-	UtcModified  string `json:"UtcModified" xml:"UtcModified"`
-	IotId        string `json:"IotId" xml:"IotId"`
-	Nickname     string `json:"Nickname" xml:"Nickname"`
+	RequestId    string            `json:"RequestId" xml:"RequestId"`
+	Success      bool              `json:"Success" xml:"Success"`
+	Code         string            `json:"Code" xml:"Code"`
+	ErrorMessage string            `json:"ErrorMessage" xml:"ErrorMessage"`
+	Total        int               `json:"Total" xml:"Total"`
+	PageSize     int               `json:"PageSize" xml:"PageSize"`
+	PageCount    int               `json:"PageCount" xml:"PageCount"`
+	Page         int               `json:"Page" xml:"Page"`
+	Data         DataInQueryDevice `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceRequest creates a request to invoke QueryDevice API

+ 15 - 26
services/iot/query_device_by_tags.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,41 +76,30 @@ func (client *Client) QueryDeviceByTagsWithCallback(request *QueryDeviceByTagsRe
 // QueryDeviceByTagsRequest is the request struct for api QueryDeviceByTags
 type QueryDeviceByTagsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string                  `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string                  `position:"Query" name:"IotInstanceId"`
-	Tag           *[]QueryDeviceByTagsTag `position:"Query" name:"Tag" type:"Repeated"`
-	CurrentPage   requests.Integer        `position:"Query" name:"CurrentPage"`
 	PageSize      requests.Integer        `position:"Query" name:"PageSize"`
+	CurrentPage   requests.Integer        `position:"Query" name:"CurrentPage"`
+	Tag           *[]QueryDeviceByTagsTag `position:"Query" name:"Tag"  type:"Repeated"`
 }
 
+// QueryDeviceByTagsTag is a repeated param struct in QueryDeviceByTagsRequest
 type QueryDeviceByTagsTag struct {
-	TagKey   string `name:"TagKey"`
 	TagValue string `name:"TagValue"`
+	TagKey   string `name:"TagKey"`
 }
 
 // QueryDeviceByTagsResponse is the response struct for api QueryDeviceByTags
 type QueryDeviceByTagsResponse struct {
 	*responses.BaseResponse
-	RequestId    string                 `json:"RequestId" xml:"RequestId"`
-	Success      bool                   `json:"Success" xml:"Success"`
-	Code         string                 `json:"Code" xml:"Code"`
-	ErrorMessage string                 `json:"ErrorMessage" xml:"ErrorMessage"`
-	Page         int                    `json:"Page" xml:"Page"`
-	PageSize     int                    `json:"PageSize" xml:"PageSize"`
-	PageCount    int                    `json:"PageCount" xml:"PageCount"`
-	Total        int                    `json:"Total" xml:"Total"`
-	Data         QueryDeviceByTagsData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceByTagsData0 struct {
-	SimpleDeviceInfo []QueryDeviceByTagsSimpleDeviceInfo1 `json:"SimpleDeviceInfo" xml:"SimpleDeviceInfo"`
-}
-
-type QueryDeviceByTagsSimpleDeviceInfo1 struct {
-	ProductName string `json:"ProductName" xml:"ProductName"`
-	ProductKey  string `json:"ProductKey" xml:"ProductKey"`
-	DeviceName  string `json:"DeviceName" xml:"DeviceName"`
-	IotId       string `json:"IotId" xml:"IotId"`
+	RequestId    string                  `json:"RequestId" xml:"RequestId"`
+	Success      bool                    `json:"Success" xml:"Success"`
+	Code         string                  `json:"Code" xml:"Code"`
+	ErrorMessage string                  `json:"ErrorMessage" xml:"ErrorMessage"`
+	Page         int                     `json:"Page" xml:"Page"`
+	PageSize     int                     `json:"PageSize" xml:"PageSize"`
+	PageCount    int                     `json:"PageCount" xml:"PageCount"`
+	Total        int                     `json:"Total" xml:"Total"`
+	Data         DataInQueryDeviceByTags `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceByTagsRequest creates a request to invoke QueryDeviceByTags API

+ 12 - 31
services/iot/query_device_desired_property.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,40 +76,21 @@ func (client *Client) QueryDeviceDesiredPropertyWithCallback(request *QueryDevic
 // QueryDeviceDesiredPropertyRequest is the request struct for api QueryDeviceDesiredProperty
 type QueryDeviceDesiredPropertyRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string   `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string   `position:"Query" name:"IotInstanceId"`
-	IotId         string   `position:"Query" name:"IotId"`
-	ProductKey    string   `position:"Query" name:"ProductKey"`
-	DeviceName    string   `position:"Query" name:"DeviceName"`
-	Identifier    []string `position:"Query" name:"Identifier" type:"Repeated"`
+	Identifier    *[]string `position:"Query" name:"Identifier"  type:"Repeated"`
+	IotId         string    `position:"Query" name:"IotId"`
+	IotInstanceId string    `position:"Query" name:"IotInstanceId"`
+	DeviceName    string    `position:"Query" name:"DeviceName"`
+	ProductKey    string    `position:"Query" name:"ProductKey"`
 }
 
 // QueryDeviceDesiredPropertyResponse is the response struct for api QueryDeviceDesiredProperty
 type QueryDeviceDesiredPropertyResponse struct {
 	*responses.BaseResponse
-	RequestId    string                          `json:"RequestId" xml:"RequestId"`
-	Success      bool                            `json:"Success" xml:"Success"`
-	Code         string                          `json:"Code" xml:"Code"`
-	ErrorMessage string                          `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryDeviceDesiredPropertyData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceDesiredPropertyData0 struct {
-	List QueryDeviceDesiredPropertyList1 `json:"List" xml:"List"`
-}
-
-type QueryDeviceDesiredPropertyList1 struct {
-	DesiredPropertyInfo []QueryDeviceDesiredPropertyDesiredPropertyInfo2 `json:"DesiredPropertyInfo" xml:"DesiredPropertyInfo"`
-}
-
-type QueryDeviceDesiredPropertyDesiredPropertyInfo2 struct {
-	Unit       string `json:"Unit" xml:"Unit"`
-	Identifier string `json:"Identifier" xml:"Identifier"`
-	DataType   string `json:"DataType" xml:"DataType"`
-	Time       string `json:"Time" xml:"Time"`
-	Value      string `json:"Value" xml:"Value"`
-	Name       string `json:"Name" xml:"Name"`
-	Version    int64  `json:"Version" xml:"Version"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceDesiredPropertyRequest creates a request to invoke QueryDeviceDesiredProperty API

+ 9 - 31
services/iot/query_device_detail.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,42 +76,20 @@ func (client *Client) QueryDeviceDetailWithCallback(request *QueryDeviceDetailRe
 // QueryDeviceDetailRequest is the request struct for api QueryDeviceDetail
 type QueryDeviceDetailRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 }
 
 // QueryDeviceDetailResponse is the response struct for api QueryDeviceDetail
 type QueryDeviceDetailResponse struct {
 	*responses.BaseResponse
-	RequestId    string                 `json:"RequestId" xml:"RequestId"`
-	Success      bool                   `json:"Success" xml:"Success"`
-	Code         string                 `json:"Code" xml:"Code"`
-	ErrorMessage string                 `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryDeviceDetailData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceDetailData0 struct {
-	IotId           string `json:"IotId" xml:"IotId"`
-	ProductKey      string `json:"ProductKey" xml:"ProductKey"`
-	ProductName     string `json:"ProductName" xml:"ProductName"`
-	DeviceName      string `json:"DeviceName" xml:"DeviceName"`
-	DeviceSecret    string `json:"DeviceSecret" xml:"DeviceSecret"`
-	FirmwareVersion string `json:"FirmwareVersion" xml:"FirmwareVersion"`
-	GmtCreate       string `json:"GmtCreate" xml:"GmtCreate"`
-	UtcCreate       string `json:"UtcCreate" xml:"UtcCreate"`
-	GmtActive       string `json:"GmtActive" xml:"GmtActive"`
-	UtcActive       string `json:"UtcActive" xml:"UtcActive"`
-	GmtOnline       string `json:"GmtOnline" xml:"GmtOnline"`
-	UtcOnline       string `json:"UtcOnline" xml:"UtcOnline"`
-	Status          string `json:"Status" xml:"Status"`
-	IpAddress       string `json:"IpAddress" xml:"IpAddress"`
-	NodeType        int    `json:"NodeType" xml:"NodeType"`
-	Region          string `json:"Region" xml:"Region"`
-	Owner           bool   `json:"Owner" xml:"Owner"`
-	Nickname        string `json:"Nickname" xml:"Nickname"`
+	RequestId    string                  `json:"RequestId" xml:"RequestId"`
+	Success      bool                    `json:"Success" xml:"Success"`
+	Code         string                  `json:"Code" xml:"Code"`
+	ErrorMessage string                  `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInQueryDeviceDetail `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceDetailRequest creates a request to invoke QueryDeviceDetail API

+ 13 - 32
services/iot/query_device_event_data.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,45 +76,26 @@ func (client *Client) QueryDeviceEventDataWithCallback(request *QueryDeviceEvent
 // QueryDeviceEventDataRequest is the request struct for api QueryDeviceEventData
 type QueryDeviceEventDataRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
+	Asc           requests.Integer `position:"Query" name:"Asc"`
+	Identifier    string           `position:"Query" name:"Identifier"`
 	IotId         string           `position:"Query" name:"IotId"`
-	ProductKey    string           `position:"Query" name:"ProductKey"`
+	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
+	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	EndTime       requests.Integer `position:"Query" name:"EndTime"`
 	EventType     string           `position:"Query" name:"EventType"`
 	DeviceName    string           `position:"Query" name:"DeviceName"`
-	Identifier    string           `position:"Query" name:"Identifier"`
 	StartTime     requests.Integer `position:"Query" name:"StartTime"`
-	EndTime       requests.Integer `position:"Query" name:"EndTime"`
-	Asc           requests.Integer `position:"Query" name:"Asc"`
-	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	ProductKey    string           `position:"Query" name:"ProductKey"`
 }
 
 // QueryDeviceEventDataResponse is the response struct for api QueryDeviceEventData
 type QueryDeviceEventDataResponse struct {
 	*responses.BaseResponse
-	RequestId    string                    `json:"RequestId" xml:"RequestId"`
-	Success      bool                      `json:"Success" xml:"Success"`
-	Code         string                    `json:"Code" xml:"Code"`
-	ErrorMessage string                    `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryDeviceEventDataData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceEventDataData0 struct {
-	NextTime  int64                     `json:"NextTime" xml:"NextTime"`
-	NextValid bool                      `json:"NextValid" xml:"NextValid"`
-	List      QueryDeviceEventDataList1 `json:"List" xml:"List"`
-}
-
-type QueryDeviceEventDataList1 struct {
-	EventInfo []QueryDeviceEventDataEventInfo2 `json:"EventInfo" xml:"EventInfo"`
-}
-
-type QueryDeviceEventDataEventInfo2 struct {
-	Time       string `json:"Time" xml:"Time"`
-	Identifier string `json:"Identifier" xml:"Identifier"`
-	Name       string `json:"Name" xml:"Name"`
-	EventType  string `json:"EventType" xml:"EventType"`
-	OutputData string `json:"OutputData" xml:"OutputData"`
+	RequestId    string                     `json:"RequestId" xml:"RequestId"`
+	Success      bool                       `json:"Success" xml:"Success"`
+	Code         string                     `json:"Code" xml:"Code"`
+	ErrorMessage string                     `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInQueryDeviceEventData `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceEventDataRequest creates a request to invoke QueryDeviceEventData API

+ 9 - 18
services/iot/query_device_file.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,30 +76,21 @@ func (client *Client) QueryDeviceFileWithCallback(request *QueryDeviceFileReques
 // QueryDeviceFileRequest is the request struct for api QueryDeviceFile
 type QueryDeviceFileRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
+	IotId         string `position:"Query" name:"IotId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 	FileId        string `position:"Query" name:"FileId"`
-	IotId         string `position:"Query" name:"IotId"`
 }
 
 // QueryDeviceFileResponse is the response struct for api QueryDeviceFile
 type QueryDeviceFileResponse struct {
 	*responses.BaseResponse
-	RequestId    string               `json:"RequestId" xml:"RequestId"`
-	Success      bool                 `json:"Success" xml:"Success"`
-	Code         string               `json:"Code" xml:"Code"`
-	ErrorMessage string               `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryDeviceFileData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceFileData0 struct {
-	FileId       string `json:"FileId" xml:"FileId"`
-	Name         string `json:"Name" xml:"Name"`
-	Size         string `json:"Size" xml:"Size"`
-	UtcCreatedOn string `json:"UtcCreatedOn" xml:"UtcCreatedOn"`
-	DownloadUrl  string `json:"DownloadUrl" xml:"DownloadUrl"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceFileRequest creates a request to invoke QueryDeviceFile API

+ 14 - 26
services/iot/query_device_file_list.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,38 +76,26 @@ func (client *Client) QueryDeviceFileListWithCallback(request *QueryDeviceFileLi
 // QueryDeviceFileListRequest is the request struct for api QueryDeviceFileList
 type QueryDeviceFileListRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
+	IotId         string           `position:"Query" name:"IotId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
-	ProductKey    string           `position:"Query" name:"ProductKey"`
+	PageSize      requests.Integer `position:"Query" name:"PageSize"`
 	DeviceName    string           `position:"Query" name:"DeviceName"`
 	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
-	PageSize      requests.Integer `position:"Query" name:"PageSize"`
-	IotId         string           `position:"Query" name:"IotId"`
+	ProductKey    string           `position:"Query" name:"ProductKey"`
 }
 
 // QueryDeviceFileListResponse is the response struct for api QueryDeviceFileList
 type QueryDeviceFileListResponse struct {
 	*responses.BaseResponse
-	RequestId    string                   `json:"RequestId" xml:"RequestId"`
-	Success      bool                     `json:"Success" xml:"Success"`
-	Code         string                   `json:"Code" xml:"Code"`
-	ErrorMessage string                   `json:"ErrorMessage" xml:"ErrorMessage"`
-	CurrentPage  int                      `json:"CurrentPage" xml:"CurrentPage"`
-	PageCount    int                      `json:"PageCount" xml:"PageCount"`
-	PageSize     int                      `json:"PageSize" xml:"PageSize"`
-	Total        int                      `json:"Total" xml:"Total"`
-	Data         QueryDeviceFileListData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceFileListData0 struct {
-	FileSummary []QueryDeviceFileListFileSummary1 `json:"FileSummary" xml:"FileSummary"`
-}
-
-type QueryDeviceFileListFileSummary1 struct {
-	FileId       string `json:"FileId" xml:"FileId"`
-	Name         string `json:"Name" xml:"Name"`
-	Size         string `json:"Size" xml:"Size"`
-	UtcCreatedOn string `json:"UtcCreatedOn" xml:"UtcCreatedOn"`
+	RequestId    string                    `json:"RequestId" xml:"RequestId"`
+	Success      bool                      `json:"Success" xml:"Success"`
+	Code         string                    `json:"Code" xml:"Code"`
+	ErrorMessage string                    `json:"ErrorMessage" xml:"ErrorMessage"`
+	CurrentPage  int                       `json:"CurrentPage" xml:"CurrentPage"`
+	PageCount    int                       `json:"PageCount" xml:"PageCount"`
+	PageSize     int                       `json:"PageSize" xml:"PageSize"`
+	Total        int                       `json:"Total" xml:"Total"`
+	Data         DataInQueryDeviceFileList `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceFileListRequest creates a request to invoke QueryDeviceFileList API

+ 8 - 20
services/iot/query_device_group_by_device.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,31 +76,19 @@ func (client *Client) QueryDeviceGroupByDeviceWithCallback(request *QueryDeviceG
 // QueryDeviceGroupByDeviceRequest is the request struct for api QueryDeviceGroupByDevice
 type QueryDeviceGroupByDeviceRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 }
 
 // QueryDeviceGroupByDeviceResponse is the response struct for api QueryDeviceGroupByDevice
 type QueryDeviceGroupByDeviceResponse struct {
 	*responses.BaseResponse
-	RequestId    string                              `json:"RequestId" xml:"RequestId"`
-	Success      bool                                `json:"Success" xml:"Success"`
-	Code         string                              `json:"Code" xml:"Code"`
-	ErrorMessage string                              `json:"ErrorMessage" xml:"ErrorMessage"`
-	GroupInfos   QueryDeviceGroupByDeviceGroupInfos0 `json:"GroupInfos" xml:"GroupInfos"`
-}
-
-type QueryDeviceGroupByDeviceGroupInfos0 struct {
-	GroupInfo []QueryDeviceGroupByDeviceGroupInfo1 `json:"GroupInfo" xml:"GroupInfo"`
-}
-
-type QueryDeviceGroupByDeviceGroupInfo1 struct {
-	GroupId   string `json:"GroupId" xml:"GroupId"`
-	GroupName string `json:"GroupName" xml:"GroupName"`
-	UtcCreate string `json:"UtcCreate" xml:"UtcCreate"`
-	GroupDesc string `json:"GroupDesc" xml:"GroupDesc"`
+	RequestId    string     `json:"RequestId" xml:"RequestId"`
+	Success      bool       `json:"Success" xml:"Success"`
+	Code         string     `json:"Code" xml:"Code"`
+	ErrorMessage string     `json:"ErrorMessage" xml:"ErrorMessage"`
+	GroupInfos   GroupInfos `json:"GroupInfos" xml:"GroupInfos"`
 }
 
 // CreateQueryDeviceGroupByDeviceRequest creates a request to invoke QueryDeviceGroupByDevice API

+ 15 - 24
services/iot/query_device_group_by_tags.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,39 +76,30 @@ func (client *Client) QueryDeviceGroupByTagsWithCallback(request *QueryDeviceGro
 // QueryDeviceGroupByTagsRequest is the request struct for api QueryDeviceGroupByTags
 type QueryDeviceGroupByTagsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string                       `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string                       `position:"Query" name:"IotInstanceId"`
-	Tag           *[]QueryDeviceGroupByTagsTag `position:"Query" name:"Tag" type:"Repeated"`
-	CurrentPage   requests.Integer             `position:"Query" name:"CurrentPage"`
 	PageSize      requests.Integer             `position:"Query" name:"PageSize"`
+	CurrentPage   requests.Integer             `position:"Query" name:"CurrentPage"`
+	Tag           *[]QueryDeviceGroupByTagsTag `position:"Query" name:"Tag"  type:"Repeated"`
 }
 
+// QueryDeviceGroupByTagsTag is a repeated param struct in QueryDeviceGroupByTagsRequest
 type QueryDeviceGroupByTagsTag struct {
-	TagKey   string `name:"TagKey"`
 	TagValue string `name:"TagValue"`
+	TagKey   string `name:"TagKey"`
 }
 
 // QueryDeviceGroupByTagsResponse is the response struct for api QueryDeviceGroupByTags
 type QueryDeviceGroupByTagsResponse struct {
 	*responses.BaseResponse
-	RequestId    string                      `json:"RequestId" xml:"RequestId"`
-	Success      bool                        `json:"Success" xml:"Success"`
-	Code         string                      `json:"Code" xml:"Code"`
-	ErrorMessage string                      `json:"ErrorMessage" xml:"ErrorMessage"`
-	Page         int                         `json:"Page" xml:"Page"`
-	PageSize     int                         `json:"PageSize" xml:"PageSize"`
-	PageCount    int                         `json:"PageCount" xml:"PageCount"`
-	Total        int                         `json:"Total" xml:"Total"`
-	Data         QueryDeviceGroupByTagsData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceGroupByTagsData0 struct {
-	DeviceGroup []QueryDeviceGroupByTagsDeviceGroup1 `json:"DeviceGroup" xml:"DeviceGroup"`
-}
-
-type QueryDeviceGroupByTagsDeviceGroup1 struct {
-	GroupId   string `json:"GroupId" xml:"GroupId"`
-	GroupName string `json:"GroupName" xml:"GroupName"`
+	RequestId    string                       `json:"RequestId" xml:"RequestId"`
+	Success      bool                         `json:"Success" xml:"Success"`
+	Code         string                       `json:"Code" xml:"Code"`
+	ErrorMessage string                       `json:"ErrorMessage" xml:"ErrorMessage"`
+	Page         int                          `json:"Page" xml:"Page"`
+	PageSize     int                          `json:"PageSize" xml:"PageSize"`
+	PageCount    int                          `json:"PageCount" xml:"PageCount"`
+	Total        int                          `json:"Total" xml:"Total"`
+	Data         DataInQueryDeviceGroupByTags `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceGroupByTagsRequest creates a request to invoke QueryDeviceGroupByTags API

+ 7 - 18
services/iot/query_device_group_info.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) QueryDeviceGroupInfoWithCallback(request *QueryDeviceGroup
 // QueryDeviceGroupInfoRequest is the request struct for api QueryDeviceGroupInfo
 type QueryDeviceGroupInfoRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	GroupId       string `position:"Query" name:"GroupId"`
 }
@@ -84,21 +83,11 @@ type QueryDeviceGroupInfoRequest struct {
 // QueryDeviceGroupInfoResponse is the response struct for api QueryDeviceGroupInfo
 type QueryDeviceGroupInfoResponse struct {
 	*responses.BaseResponse
-	RequestId    string                    `json:"RequestId" xml:"RequestId"`
-	Success      bool                      `json:"Success" xml:"Success"`
-	Code         string                    `json:"Code" xml:"Code"`
-	ErrorMessage string                    `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryDeviceGroupInfoData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceGroupInfoData0 struct {
-	GroupId      string `json:"GroupId" xml:"GroupId"`
-	UtcCreate    string `json:"UtcCreate" xml:"UtcCreate"`
-	GroupName    string `json:"GroupName" xml:"GroupName"`
-	GroupDesc    string `json:"GroupDesc" xml:"GroupDesc"`
-	DeviceCount  int    `json:"DeviceCount" xml:"DeviceCount"`
-	DeviceActive int    `json:"DeviceActive" xml:"DeviceActive"`
-	DeviceOnline int    `json:"DeviceOnline" xml:"DeviceOnline"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceGroupInfoRequest creates a request to invoke QueryDeviceGroupInfo API

+ 13 - 25
services/iot/query_device_group_list.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,37 +76,25 @@ func (client *Client) QueryDeviceGroupListWithCallback(request *QueryDeviceGroup
 // QueryDeviceGroupListRequest is the request struct for api QueryDeviceGroupList
 type QueryDeviceGroupListRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	SuperGroupId  string           `position:"Query" name:"SuperGroupId"`
-	GroupName     string           `position:"Query" name:"GroupName"`
-	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
 	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
+	GroupName     string           `position:"Query" name:"GroupName"`
 }
 
 // QueryDeviceGroupListResponse is the response struct for api QueryDeviceGroupList
 type QueryDeviceGroupListResponse struct {
 	*responses.BaseResponse
-	RequestId    string                    `json:"RequestId" xml:"RequestId"`
-	Success      bool                      `json:"Success" xml:"Success"`
-	Code         string                    `json:"Code" xml:"Code"`
-	ErrorMessage string                    `json:"ErrorMessage" xml:"ErrorMessage"`
-	CurrentPage  int                       `json:"CurrentPage" xml:"CurrentPage"`
-	PageCount    int                       `json:"PageCount" xml:"PageCount"`
-	PageSize     int                       `json:"PageSize" xml:"PageSize"`
-	Total        int                       `json:"Total" xml:"Total"`
-	Data         QueryDeviceGroupListData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceGroupListData0 struct {
-	GroupInfo []QueryDeviceGroupListGroupInfo1 `json:"GroupInfo" xml:"GroupInfo"`
-}
-
-type QueryDeviceGroupListGroupInfo1 struct {
-	GroupId   string `json:"GroupId" xml:"GroupId"`
-	UtcCreate string `json:"UtcCreate" xml:"UtcCreate"`
-	GroupName string `json:"GroupName" xml:"GroupName"`
-	GroupDesc string `json:"GroupDesc" xml:"GroupDesc"`
+	RequestId    string                     `json:"RequestId" xml:"RequestId"`
+	Success      bool                       `json:"Success" xml:"Success"`
+	Code         string                     `json:"Code" xml:"Code"`
+	ErrorMessage string                     `json:"ErrorMessage" xml:"ErrorMessage"`
+	CurrentPage  int                        `json:"CurrentPage" xml:"CurrentPage"`
+	PageCount    int                        `json:"PageCount" xml:"PageCount"`
+	PageSize     int                        `json:"PageSize" xml:"PageSize"`
+	Total        int                        `json:"Total" xml:"Total"`
+	Data         DataInQueryDeviceGroupList `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceGroupListRequest creates a request to invoke QueryDeviceGroupList API

+ 7 - 17
services/iot/query_device_group_tag_list.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) QueryDeviceGroupTagListWithCallback(request *QueryDeviceGr
 // QueryDeviceGroupTagListRequest is the request struct for api QueryDeviceGroupTagList
 type QueryDeviceGroupTagListRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	GroupId       string `position:"Query" name:"GroupId"`
 }
@@ -84,20 +83,11 @@ type QueryDeviceGroupTagListRequest struct {
 // QueryDeviceGroupTagListResponse is the response struct for api QueryDeviceGroupTagList
 type QueryDeviceGroupTagListResponse struct {
 	*responses.BaseResponse
-	RequestId    string                       `json:"RequestId" xml:"RequestId"`
-	Success      bool                         `json:"Success" xml:"Success"`
-	Code         string                       `json:"Code" xml:"Code"`
-	ErrorMessage string                       `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryDeviceGroupTagListData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceGroupTagListData0 struct {
-	GroupTagInfo []QueryDeviceGroupTagListGroupTagInfo1 `json:"GroupTagInfo" xml:"GroupTagInfo"`
-}
-
-type QueryDeviceGroupTagListGroupTagInfo1 struct {
-	TagKey   string `json:"TagKey" xml:"TagKey"`
-	TagValue string `json:"TagValue" xml:"TagValue"`
+	RequestId    string                        `json:"RequestId" xml:"RequestId"`
+	Success      bool                          `json:"Success" xml:"Success"`
+	Code         string                        `json:"Code" xml:"Code"`
+	ErrorMessage string                        `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInQueryDeviceGroupTagList `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceGroupTagListRequest creates a request to invoke QueryDeviceGroupTagList API

+ 13 - 25
services/iot/query_device_list_by_device_group.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,36 +76,24 @@ func (client *Client) QueryDeviceListByDeviceGroupWithCallback(request *QueryDev
 // QueryDeviceListByDeviceGroupRequest is the request struct for api QueryDeviceListByDeviceGroup
 type QueryDeviceListByDeviceGroupRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
-	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
-	PageSize      requests.Integer `position:"Query" name:"PageSize"`
 	GroupId       string           `position:"Query" name:"GroupId"`
+	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
 }
 
 // QueryDeviceListByDeviceGroupResponse is the response struct for api QueryDeviceListByDeviceGroup
 type QueryDeviceListByDeviceGroupResponse struct {
 	*responses.BaseResponse
-	RequestId    string                            `json:"RequestId" xml:"RequestId"`
-	Success      bool                              `json:"Success" xml:"Success"`
-	Code         string                            `json:"Code" xml:"Code"`
-	ErrorMessage string                            `json:"ErrorMessage" xml:"ErrorMessage"`
-	Page         int                               `json:"Page" xml:"Page"`
-	PageSize     int                               `json:"PageSize" xml:"PageSize"`
-	PageCount    int                               `json:"PageCount" xml:"PageCount"`
-	Total        int                               `json:"Total" xml:"Total"`
-	Data         QueryDeviceListByDeviceGroupData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceListByDeviceGroupData0 struct {
-	SimpleDeviceInfo []QueryDeviceListByDeviceGroupSimpleDeviceInfo1 `json:"SimpleDeviceInfo" xml:"SimpleDeviceInfo"`
-}
-
-type QueryDeviceListByDeviceGroupSimpleDeviceInfo1 struct {
-	ProductName string `json:"ProductName" xml:"ProductName"`
-	ProductKey  string `json:"ProductKey" xml:"ProductKey"`
-	DeviceName  string `json:"DeviceName" xml:"DeviceName"`
-	IotId       string `json:"IotId" xml:"IotId"`
+	RequestId    string                             `json:"RequestId" xml:"RequestId"`
+	Success      bool                               `json:"Success" xml:"Success"`
+	Code         string                             `json:"Code" xml:"Code"`
+	ErrorMessage string                             `json:"ErrorMessage" xml:"ErrorMessage"`
+	Page         int                                `json:"Page" xml:"Page"`
+	PageSize     int                                `json:"PageSize" xml:"PageSize"`
+	PageCount    int                                `json:"PageCount" xml:"PageCount"`
+	Total        int                                `json:"Total" xml:"Total"`
+	Data         DataInQueryDeviceListByDeviceGroup `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceListByDeviceGroupRequest creates a request to invoke QueryDeviceListByDeviceGroup API

+ 3 - 4
services/iot/query_device_prop.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,9 +76,8 @@ func (client *Client) QueryDevicePropWithCallback(request *QueryDevicePropReques
 // QueryDevicePropRequest is the request struct for api QueryDeviceProp
 type QueryDevicePropRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
 }

+ 15 - 34
services/iot/query_device_properties_data.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,46 +76,27 @@ func (client *Client) QueryDevicePropertiesDataWithCallback(request *QueryDevice
 // QueryDevicePropertiesDataRequest is the request struct for api QueryDevicePropertiesData
 type QueryDevicePropertiesDataRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
+	Asc           requests.Integer `position:"Query" name:"Asc"`
+	Identifier    *[]string        `position:"Query" name:"Identifier"  type:"Repeated"`
 	IotId         string           `position:"Query" name:"IotId"`
-	ProductKey    string           `position:"Query" name:"ProductKey"`
+	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
+	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	EndTime       requests.Integer `position:"Query" name:"EndTime"`
 	DeviceName    string           `position:"Query" name:"DeviceName"`
-	Identifier    []string         `position:"Query" name:"Identifier" type:"Repeated"`
 	StartTime     requests.Integer `position:"Query" name:"StartTime"`
-	EndTime       requests.Integer `position:"Query" name:"EndTime"`
-	Asc           requests.Integer `position:"Query" name:"Asc"`
-	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	ProductKey    string           `position:"Query" name:"ProductKey"`
 }
 
 // QueryDevicePropertiesDataResponse is the response struct for api QueryDevicePropertiesData
 type QueryDevicePropertiesDataResponse struct {
 	*responses.BaseResponse
-	RequestId         string                                      `json:"RequestId" xml:"RequestId"`
-	Success           bool                                        `json:"Success" xml:"Success"`
-	Code              string                                      `json:"Code" xml:"Code"`
-	ErrorMessage      string                                      `json:"ErrorMessage" xml:"ErrorMessage"`
-	NextValid         bool                                        `json:"NextValid" xml:"NextValid"`
-	NextTime          int64                                       `json:"NextTime" xml:"NextTime"`
-	PropertyDataInfos QueryDevicePropertiesDataPropertyDataInfos0 `json:"PropertyDataInfos" xml:"PropertyDataInfos"`
-}
-
-type QueryDevicePropertiesDataPropertyDataInfos0 struct {
-	PropertyDataInfo []QueryDevicePropertiesDataPropertyDataInfo1 `json:"PropertyDataInfo" xml:"PropertyDataInfo"`
-}
-
-type QueryDevicePropertiesDataPropertyDataInfo1 struct {
-	Identifier string                         `json:"Identifier" xml:"Identifier"`
-	List       QueryDevicePropertiesDataList1 `json:"List" xml:"List"`
-}
-
-type QueryDevicePropertiesDataList1 struct {
-	PropertyInfo []QueryDevicePropertiesDataPropertyInfo2 `json:"PropertyInfo" xml:"PropertyInfo"`
-}
-
-type QueryDevicePropertiesDataPropertyInfo2 struct {
-	Time  int64  `json:"Time" xml:"Time"`
-	Value string `json:"Value" xml:"Value"`
+	RequestId         string            `json:"RequestId" xml:"RequestId"`
+	Success           bool              `json:"Success" xml:"Success"`
+	Code              string            `json:"Code" xml:"Code"`
+	ErrorMessage      string            `json:"ErrorMessage" xml:"ErrorMessage"`
+	NextValid         bool              `json:"NextValid" xml:"NextValid"`
+	NextTime          int64             `json:"NextTime" xml:"NextTime"`
+	PropertyDataInfos PropertyDataInfos `json:"PropertyDataInfos" xml:"PropertyDataInfos"`
 }
 
 // CreateQueryDevicePropertiesDataRequest creates a request to invoke QueryDevicePropertiesData API

+ 13 - 29
services/iot/query_device_property_data.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,41 +76,25 @@ func (client *Client) QueryDevicePropertyDataWithCallback(request *QueryDevicePr
 // QueryDevicePropertyDataRequest is the request struct for api QueryDevicePropertyData
 type QueryDevicePropertyDataRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
+	Asc           requests.Integer `position:"Query" name:"Asc"`
+	Identifier    string           `position:"Query" name:"Identifier"`
 	IotId         string           `position:"Query" name:"IotId"`
-	ProductKey    string           `position:"Query" name:"ProductKey"`
+	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
+	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	EndTime       requests.Integer `position:"Query" name:"EndTime"`
 	DeviceName    string           `position:"Query" name:"DeviceName"`
-	Identifier    string           `position:"Query" name:"Identifier"`
 	StartTime     requests.Integer `position:"Query" name:"StartTime"`
-	EndTime       requests.Integer `position:"Query" name:"EndTime"`
-	Asc           requests.Integer `position:"Query" name:"Asc"`
-	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	ProductKey    string           `position:"Query" name:"ProductKey"`
 }
 
 // QueryDevicePropertyDataResponse is the response struct for api QueryDevicePropertyData
 type QueryDevicePropertyDataResponse struct {
 	*responses.BaseResponse
-	RequestId    string                       `json:"RequestId" xml:"RequestId"`
-	Success      bool                         `json:"Success" xml:"Success"`
-	Code         string                       `json:"Code" xml:"Code"`
-	ErrorMessage string                       `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryDevicePropertyDataData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDevicePropertyDataData0 struct {
-	NextValid bool                         `json:"NextValid" xml:"NextValid"`
-	NextTime  int64                        `json:"NextTime" xml:"NextTime"`
-	List      QueryDevicePropertyDataList1 `json:"List" xml:"List"`
-}
-
-type QueryDevicePropertyDataList1 struct {
-	PropertyInfo []QueryDevicePropertyDataPropertyInfo2 `json:"PropertyInfo" xml:"PropertyInfo"`
-}
-
-type QueryDevicePropertyDataPropertyInfo2 struct {
-	Time  string `json:"Time" xml:"Time"`
-	Value string `json:"Value" xml:"Value"`
+	RequestId    string                        `json:"RequestId" xml:"RequestId"`
+	Success      bool                          `json:"Success" xml:"Success"`
+	Code         string                        `json:"Code" xml:"Code"`
+	ErrorMessage string                        `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInQueryDevicePropertyData `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDevicePropertyDataRequest creates a request to invoke QueryDevicePropertyData API

+ 9 - 27
services/iot/query_device_property_status.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,38 +76,20 @@ func (client *Client) QueryDevicePropertyStatusWithCallback(request *QueryDevice
 // QueryDevicePropertyStatusRequest is the request struct for api QueryDevicePropertyStatus
 type QueryDevicePropertyStatusRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 }
 
 // QueryDevicePropertyStatusResponse is the response struct for api QueryDevicePropertyStatus
 type QueryDevicePropertyStatusResponse struct {
 	*responses.BaseResponse
-	RequestId    string                         `json:"RequestId" xml:"RequestId"`
-	Success      bool                           `json:"Success" xml:"Success"`
-	Code         string                         `json:"Code" xml:"Code"`
-	ErrorMessage string                         `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryDevicePropertyStatusData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDevicePropertyStatusData0 struct {
-	List QueryDevicePropertyStatusList1 `json:"List" xml:"List"`
-}
-
-type QueryDevicePropertyStatusList1 struct {
-	PropertyStatusInfo []QueryDevicePropertyStatusPropertyStatusInfo2 `json:"PropertyStatusInfo" xml:"PropertyStatusInfo"`
-}
-
-type QueryDevicePropertyStatusPropertyStatusInfo2 struct {
-	Unit       string `json:"Unit" xml:"Unit"`
-	Identifier string `json:"Identifier" xml:"Identifier"`
-	DataType   string `json:"DataType" xml:"DataType"`
-	Time       string `json:"Time" xml:"Time"`
-	Value      string `json:"Value" xml:"Value"`
-	Name       string `json:"Name" xml:"Name"`
+	RequestId    string                          `json:"RequestId" xml:"RequestId"`
+	Success      bool                            `json:"Success" xml:"Success"`
+	Code         string                          `json:"Code" xml:"Code"`
+	ErrorMessage string                          `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInQueryDevicePropertyStatus `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDevicePropertyStatusRequest creates a request to invoke QueryDevicePropertyStatus API

+ 13 - 32
services/iot/query_device_service_data.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,44 +76,25 @@ func (client *Client) QueryDeviceServiceDataWithCallback(request *QueryDeviceSer
 // QueryDeviceServiceDataRequest is the request struct for api QueryDeviceServiceData
 type QueryDeviceServiceDataRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
+	Asc           requests.Integer `position:"Query" name:"Asc"`
+	Identifier    string           `position:"Query" name:"Identifier"`
 	IotId         string           `position:"Query" name:"IotId"`
-	ProductKey    string           `position:"Query" name:"ProductKey"`
+	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
+	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	EndTime       requests.Integer `position:"Query" name:"EndTime"`
 	DeviceName    string           `position:"Query" name:"DeviceName"`
-	Identifier    string           `position:"Query" name:"Identifier"`
 	StartTime     requests.Integer `position:"Query" name:"StartTime"`
-	EndTime       requests.Integer `position:"Query" name:"EndTime"`
-	Asc           requests.Integer `position:"Query" name:"Asc"`
-	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	ProductKey    string           `position:"Query" name:"ProductKey"`
 }
 
 // QueryDeviceServiceDataResponse is the response struct for api QueryDeviceServiceData
 type QueryDeviceServiceDataResponse struct {
 	*responses.BaseResponse
-	RequestId    string                      `json:"RequestId" xml:"RequestId"`
-	Success      bool                        `json:"Success" xml:"Success"`
-	Code         string                      `json:"Code" xml:"Code"`
-	ErrorMessage string                      `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryDeviceServiceDataData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceServiceDataData0 struct {
-	NextTime  int64                       `json:"NextTime" xml:"NextTime"`
-	NextValid bool                        `json:"NextValid" xml:"NextValid"`
-	List      QueryDeviceServiceDataList1 `json:"List" xml:"List"`
-}
-
-type QueryDeviceServiceDataList1 struct {
-	ServiceInfo []QueryDeviceServiceDataServiceInfo2 `json:"ServiceInfo" xml:"ServiceInfo"`
-}
-
-type QueryDeviceServiceDataServiceInfo2 struct {
-	Time       string `json:"Time" xml:"Time"`
-	Identifier string `json:"Identifier" xml:"Identifier"`
-	Name       string `json:"Name" xml:"Name"`
-	InputData  string `json:"InputData" xml:"InputData"`
-	OutputData string `json:"OutputData" xml:"OutputData"`
+	RequestId    string                       `json:"RequestId" xml:"RequestId"`
+	Success      bool                         `json:"Success" xml:"Success"`
+	Code         string                       `json:"Code" xml:"Code"`
+	ErrorMessage string                       `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInQueryDeviceServiceData `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceServiceDataRequest creates a request to invoke QueryDeviceServiceData API

+ 7 - 14
services/iot/query_device_statistics.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) QueryDeviceStatisticsWithCallback(request *QueryDeviceStat
 // QueryDeviceStatisticsRequest is the request struct for api QueryDeviceStatistics
 type QueryDeviceStatisticsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
 }
@@ -84,17 +83,11 @@ type QueryDeviceStatisticsRequest struct {
 // QueryDeviceStatisticsResponse is the response struct for api QueryDeviceStatistics
 type QueryDeviceStatisticsResponse struct {
 	*responses.BaseResponse
-	RequestId    string                     `json:"RequestId" xml:"RequestId"`
-	Success      bool                       `json:"Success" xml:"Success"`
-	Code         string                     `json:"Code" xml:"Code"`
-	ErrorMessage string                     `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryDeviceStatisticsData0 `json:"Data" xml:"Data"`
-}
-
-type QueryDeviceStatisticsData0 struct {
-	DeviceCount int64 `json:"DeviceCount" xml:"DeviceCount"`
-	OnlineCount int64 `json:"OnlineCount" xml:"OnlineCount"`
-	ActiveCount int64 `json:"ActiveCount" xml:"ActiveCount"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceStatisticsRequest creates a request to invoke QueryDeviceStatistics API

+ 8 - 22
services/iot/query_lo_ra_join_permissions.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,32 +76,18 @@ func (client *Client) QueryLoRaJoinPermissionsWithCallback(request *QueryLoRaJoi
 // QueryLoRaJoinPermissionsRequest is the request struct for api QueryLoRaJoinPermissions
 type QueryLoRaJoinPermissionsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 }
 
 // QueryLoRaJoinPermissionsResponse is the response struct for api QueryLoRaJoinPermissions
 type QueryLoRaJoinPermissionsResponse struct {
 	*responses.BaseResponse
-	RequestId       string                                   `json:"RequestId" xml:"RequestId"`
-	Success         bool                                     `json:"Success" xml:"Success"`
-	Code            string                                   `json:"Code" xml:"Code"`
-	ErrorMessage    string                                   `json:"ErrorMessage" xml:"ErrorMessage"`
-	ProductKey      string                                   `json:"ProductKey" xml:"ProductKey"`
-	JoinPermissions QueryLoRaJoinPermissionsJoinPermissions0 `json:"JoinPermissions" xml:"JoinPermissions"`
-}
-
-type QueryLoRaJoinPermissionsJoinPermissions0 struct {
-	JoinPermission []QueryLoRaJoinPermissionsJoinPermission1 `json:"JoinPermission" xml:"JoinPermission"`
-}
-
-type QueryLoRaJoinPermissionsJoinPermission1 struct {
-	JoinPermissionId   string `json:"JoinPermissionId" xml:"JoinPermissionId"`
-	JoinPermissionName string `json:"JoinPermissionName" xml:"JoinPermissionName"`
-	JoinPermissionType string `json:"JoinPermissionType" xml:"JoinPermissionType"`
-	OwnerAliyunPk      string `json:"OwnerAliyunPk" xml:"OwnerAliyunPk"`
-	Enabled            bool   `json:"Enabled" xml:"Enabled"`
-	ClassMode          string `json:"ClassMode" xml:"ClassMode"`
+	RequestId       string          `json:"RequestId" xml:"RequestId"`
+	Success         bool            `json:"Success" xml:"Success"`
+	Code            string          `json:"Code" xml:"Code"`
+	ErrorMessage    string          `json:"ErrorMessage" xml:"ErrorMessage"`
+	ProductKey      string          `json:"ProductKey" xml:"ProductKey"`
+	JoinPermissions JoinPermissions `json:"JoinPermissions" xml:"JoinPermissions"`
 }
 
 // CreateQueryLoRaJoinPermissionsRequest creates a request to invoke QueryLoRaJoinPermissions API

+ 13 - 25
services/iot/query_page_by_apply_id.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,36 +76,24 @@ func (client *Client) QueryPageByApplyIdWithCallback(request *QueryPageByApplyId
 // QueryPageByApplyIdRequest is the request struct for api QueryPageByApplyId
 type QueryPageByApplyIdRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
+	ApplyId       requests.Integer `position:"Query" name:"ApplyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
-	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
 	PageSize      requests.Integer `position:"Query" name:"PageSize"`
-	ApplyId       requests.Integer `position:"Query" name:"ApplyId"`
+	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
 }
 
 // QueryPageByApplyIdResponse is the response struct for api QueryPageByApplyId
 type QueryPageByApplyIdResponse struct {
 	*responses.BaseResponse
-	RequestId       string                             `json:"RequestId" xml:"RequestId"`
-	Success         bool                               `json:"Success" xml:"Success"`
-	Code            string                             `json:"Code" xml:"Code"`
-	ErrorMessage    string                             `json:"ErrorMessage" xml:"ErrorMessage"`
-	PageSize        int                                `json:"PageSize" xml:"PageSize"`
-	Page            int                                `json:"Page" xml:"Page"`
-	PageCount       int                                `json:"PageCount" xml:"PageCount"`
-	Total           int                                `json:"Total" xml:"Total"`
-	ApplyDeviceList QueryPageByApplyIdApplyDeviceList0 `json:"ApplyDeviceList" xml:"ApplyDeviceList"`
-}
-
-type QueryPageByApplyIdApplyDeviceList0 struct {
-	ApplyDeviceInfo []QueryPageByApplyIdApplyDeviceInfo1 `json:"ApplyDeviceInfo" xml:"ApplyDeviceInfo"`
-}
-
-type QueryPageByApplyIdApplyDeviceInfo1 struct {
-	DeviceId     string `json:"DeviceId" xml:"DeviceId"`
-	DeviceName   string `json:"DeviceName" xml:"DeviceName"`
-	DeviceSecret string `json:"DeviceSecret" xml:"DeviceSecret"`
-	IotId        string `json:"IotId" xml:"IotId"`
+	RequestId       string          `json:"RequestId" xml:"RequestId"`
+	Success         bool            `json:"Success" xml:"Success"`
+	Code            string          `json:"Code" xml:"Code"`
+	ErrorMessage    string          `json:"ErrorMessage" xml:"ErrorMessage"`
+	PageSize        int             `json:"PageSize" xml:"PageSize"`
+	Page            int             `json:"Page" xml:"Page"`
+	PageCount       int             `json:"PageCount" xml:"PageCount"`
+	Total           int             `json:"Total" xml:"Total"`
+	ApplyDeviceList ApplyDeviceList `json:"ApplyDeviceList" xml:"ApplyDeviceList"`
 }
 
 // CreateQueryPageByApplyIdRequest creates a request to invoke QueryPageByApplyId API

+ 7 - 27
services/iot/query_product.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) QueryProductWithCallback(request *QueryProductRequest, cal
 // QueryProductRequest is the request struct for api QueryProduct
 type QueryProductRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
 }
@@ -84,30 +83,11 @@ type QueryProductRequest struct {
 // QueryProductResponse is the response struct for api QueryProduct
 type QueryProductResponse struct {
 	*responses.BaseResponse
-	RequestId    string            `json:"RequestId" xml:"RequestId"`
-	Success      bool              `json:"Success" xml:"Success"`
-	Code         string            `json:"Code" xml:"Code"`
-	ErrorMessage string            `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryProductData0 `json:"Data" xml:"Data"`
-}
-
-type QueryProductData0 struct {
-	GmtCreate           int64  `json:"GmtCreate" xml:"GmtCreate"`
-	DataFormat          int    `json:"DataFormat" xml:"DataFormat"`
-	Description         string `json:"Description" xml:"Description"`
-	DeviceCount         int    `json:"DeviceCount" xml:"DeviceCount"`
-	NodeType            int    `json:"NodeType" xml:"NodeType"`
-	ProductKey          string `json:"ProductKey" xml:"ProductKey"`
-	ProductName         string `json:"ProductName" xml:"ProductName"`
-	ProductSecret       string `json:"ProductSecret" xml:"ProductSecret"`
-	CategoryName        string `json:"CategoryName" xml:"CategoryName"`
-	CategoryKey         string `json:"CategoryKey" xml:"CategoryKey"`
-	AliyunCommodityCode string `json:"AliyunCommodityCode" xml:"AliyunCommodityCode"`
-	Id2                 bool   `json:"Id2" xml:"Id2"`
-	ProtocolType        string `json:"ProtocolType" xml:"ProtocolType"`
-	ProductStatus       string `json:"ProductStatus" xml:"ProductStatus"`
-	Owner               bool   `json:"Owner" xml:"Owner"`
-	NetType             int    `json:"NetType" xml:"NetType"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateQueryProductRequest creates a request to invoke QueryProduct API

+ 8 - 31
services/iot/query_product_list.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,43 +76,20 @@ func (client *Client) QueryProductListWithCallback(request *QueryProductListRequ
 // QueryProductListRequest is the request struct for api QueryProductList
 type QueryProductListRequest struct {
 	*requests.RpcRequest
-	AccessKeyId         string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId       string           `position:"Query" name:"IotInstanceId"`
-	CurrentPage         requests.Integer `position:"Query" name:"CurrentPage"`
 	PageSize            requests.Integer `position:"Query" name:"PageSize"`
+	CurrentPage         requests.Integer `position:"Query" name:"CurrentPage"`
 	AliyunCommodityCode string           `position:"Query" name:"AliyunCommodityCode"`
 }
 
 // QueryProductListResponse is the response struct for api QueryProductList
 type QueryProductListResponse struct {
 	*responses.BaseResponse
-	RequestId    string                `json:"RequestId" xml:"RequestId"`
-	Success      bool                  `json:"Success" xml:"Success"`
-	Code         string                `json:"Code" xml:"Code"`
-	ErrorMessage string                `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryProductListData0 `json:"Data" xml:"Data"`
-}
-
-type QueryProductListData0 struct {
-	CurrentPage int                   `json:"CurrentPage" xml:"CurrentPage"`
-	PageCount   int                   `json:"PageCount" xml:"PageCount"`
-	PageSize    int                   `json:"PageSize" xml:"PageSize"`
-	Total       int                   `json:"Total" xml:"Total"`
-	List        QueryProductListList1 `json:"List" xml:"List"`
-}
-
-type QueryProductListList1 struct {
-	ProductInfo []QueryProductListProductInfo2 `json:"ProductInfo" xml:"ProductInfo"`
-}
-
-type QueryProductListProductInfo2 struct {
-	GmtCreate   int64  `json:"GmtCreate" xml:"GmtCreate"`
-	DataFormat  int    `json:"DataFormat" xml:"DataFormat"`
-	Description string `json:"Description" xml:"Description"`
-	DeviceCount int    `json:"DeviceCount" xml:"DeviceCount"`
-	NodeType    int    `json:"NodeType" xml:"NodeType"`
-	ProductKey  string `json:"ProductKey" xml:"ProductKey"`
-	ProductName string `json:"ProductName" xml:"ProductName"`
+	RequestId    string                 `json:"RequestId" xml:"RequestId"`
+	Success      bool                   `json:"Success" xml:"Success"`
+	Code         string                 `json:"Code" xml:"Code"`
+	ErrorMessage string                 `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInQueryProductList `json:"Data" xml:"Data"`
 }
 
 // CreateQueryProductListRequest creates a request to invoke QueryProductList API

+ 7 - 20
services/iot/query_product_topic.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) QueryProductTopicWithCallback(request *QueryProductTopicRe
 // QueryProductTopicRequest is the request struct for api QueryProductTopic
 type QueryProductTopicRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
 }
@@ -84,23 +83,11 @@ type QueryProductTopicRequest struct {
 // QueryProductTopicResponse is the response struct for api QueryProductTopic
 type QueryProductTopicResponse struct {
 	*responses.BaseResponse
-	RequestId    string                 `json:"RequestId" xml:"RequestId"`
-	Success      bool                   `json:"Success" xml:"Success"`
-	Code         string                 `json:"Code" xml:"Code"`
-	ErrorMessage string                 `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QueryProductTopicData0 `json:"Data" xml:"Data"`
-}
-
-type QueryProductTopicData0 struct {
-	ProductTopicInfo []QueryProductTopicProductTopicInfo1 `json:"ProductTopicInfo" xml:"ProductTopicInfo"`
-}
-
-type QueryProductTopicProductTopicInfo1 struct {
-	ProductKey     string `json:"ProductKey" xml:"ProductKey"`
-	TopicShortName string `json:"TopicShortName" xml:"TopicShortName"`
-	Operation      string `json:"Operation" xml:"Operation"`
-	Desc           string `json:"Desc" xml:"Desc"`
-	Id             string `json:"Id" xml:"Id"`
+	RequestId    string                  `json:"RequestId" xml:"RequestId"`
+	Success      bool                    `json:"Success" xml:"Success"`
+	Code         string                  `json:"Code" xml:"Code"`
+	ErrorMessage string                  `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInQueryProductTopic `json:"Data" xml:"Data"`
 }
 
 // CreateQueryProductTopicRequest creates a request to invoke QueryProductTopic API

+ 7 - 18
services/iot/query_super_device_group.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) QuerySuperDeviceGroupWithCallback(request *QuerySuperDevic
 // QuerySuperDeviceGroupRequest is the request struct for api QuerySuperDeviceGroup
 type QuerySuperDeviceGroupRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	GroupId       string `position:"Query" name:"GroupId"`
 }
@@ -84,21 +83,11 @@ type QuerySuperDeviceGroupRequest struct {
 // QuerySuperDeviceGroupResponse is the response struct for api QuerySuperDeviceGroup
 type QuerySuperDeviceGroupResponse struct {
 	*responses.BaseResponse
-	RequestId    string                     `json:"RequestId" xml:"RequestId"`
-	Success      bool                       `json:"Success" xml:"Success"`
-	Code         string                     `json:"Code" xml:"Code"`
-	ErrorMessage string                     `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         QuerySuperDeviceGroupData0 `json:"Data" xml:"Data"`
-}
-
-type QuerySuperDeviceGroupData0 struct {
-	GroupInfo []QuerySuperDeviceGroupGroupInfo1 `json:"GroupInfo" xml:"GroupInfo"`
-}
-
-type QuerySuperDeviceGroupGroupInfo1 struct {
-	GroupId   string `json:"GroupId" xml:"GroupId"`
-	GroupName string `json:"GroupName" xml:"GroupName"`
-	GroupDesc string `json:"GroupDesc" xml:"GroupDesc"`
+	RequestId    string                      `json:"RequestId" xml:"RequestId"`
+	Success      bool                        `json:"Success" xml:"Success"`
+	Code         string                      `json:"Code" xml:"Code"`
+	ErrorMessage string                      `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         DataInQuerySuperDeviceGroup `json:"Data" xml:"Data"`
 }
 
 // CreateQuerySuperDeviceGroupRequest creates a request to invoke QuerySuperDeviceGroup API

+ 7 - 9
services/iot/query_topic_reverse_route_table.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,20 +76,18 @@ func (client *Client) QueryTopicReverseRouteTableWithCallback(request *QueryTopi
 // QueryTopicReverseRouteTableRequest is the request struct for api QueryTopicReverseRouteTable
 type QueryTopicReverseRouteTableRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
-	RegionId      string `position:"Query" name:"RegionId"`
 	Topic         string `position:"Query" name:"Topic"`
 }
 
 // QueryTopicReverseRouteTableResponse is the response struct for api QueryTopicReverseRouteTable
 type QueryTopicReverseRouteTableResponse struct {
 	*responses.BaseResponse
-	RequestId    string   `json:"RequestId" xml:"RequestId"`
-	Success      bool     `json:"Success" xml:"Success"`
-	Code         string   `json:"Code" xml:"Code"`
-	ErrorMessage string   `json:"ErrorMessage" xml:"ErrorMessage"`
-	SrcTopics    []string `json:"SrcTopics" xml:"SrcTopics"`
+	RequestId    string    `json:"RequestId" xml:"RequestId"`
+	Success      bool      `json:"Success" xml:"Success"`
+	Code         string    `json:"Code" xml:"Code"`
+	ErrorMessage string    `json:"ErrorMessage" xml:"ErrorMessage"`
+	SrcTopics    SrcTopics `json:"SrcTopics" xml:"SrcTopics"`
 }
 
 // CreateQueryTopicReverseRouteTableRequest creates a request to invoke QueryTopicReverseRouteTable API

+ 7 - 9
services/iot/query_topic_route_table.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,20 +76,18 @@ func (client *Client) QueryTopicRouteTableWithCallback(request *QueryTopicRouteT
 // QueryTopicRouteTableRequest is the request struct for api QueryTopicRouteTable
 type QueryTopicRouteTableRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
-	RegionId      string `position:"Query" name:"RegionId"`
 	Topic         string `position:"Query" name:"Topic"`
 }
 
 // QueryTopicRouteTableResponse is the response struct for api QueryTopicRouteTable
 type QueryTopicRouteTableResponse struct {
 	*responses.BaseResponse
-	RequestId    string   `json:"RequestId" xml:"RequestId"`
-	Success      bool     `json:"Success" xml:"Success"`
-	Code         string   `json:"Code" xml:"Code"`
-	ErrorMessage string   `json:"ErrorMessage" xml:"ErrorMessage"`
-	DstTopics    []string `json:"DstTopics" xml:"DstTopics"`
+	RequestId    string    `json:"RequestId" xml:"RequestId"`
+	Success      bool      `json:"Success" xml:"Success"`
+	Code         string    `json:"Code" xml:"Code"`
+	ErrorMessage string    `json:"ErrorMessage" xml:"ErrorMessage"`
+	DstTopics    DstTopics `json:"DstTopics" xml:"DstTopics"`
 }
 
 // CreateQueryTopicRouteTableRequest creates a request to invoke QueryTopicRouteTable API

+ 5 - 6
services/iot/r_rpc.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,13 +76,12 @@ func (client *Client) RRpcWithCallback(request *RRpcRequest, callback func(respo
 // RRpcRequest is the request struct for api RRpc
 type RRpcRequest struct {
 	*requests.RpcRequest
-	AccessKeyId       string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId     string           `position:"Query" name:"IotInstanceId"`
+	RequestBase64Byte string           `position:"Query" name:"RequestBase64Byte"`
+	Topic             string           `position:"Query" name:"Topic"`
+	DeviceName        string           `position:"Query" name:"DeviceName"`
 	ProductKey        string           `position:"Query" name:"ProductKey"`
 	Timeout           requests.Integer `position:"Query" name:"Timeout"`
-	DeviceName        string           `position:"Query" name:"DeviceName"`
-	Topic             string           `position:"Query" name:"Topic"`
-	RequestBase64Byte string           `position:"Query" name:"RequestBase64Byte"`
 }
 
 // RRpcResponse is the response struct for api RRpc

+ 10 - 21
services/iot/register_device.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,33 +76,22 @@ func (client *Client) RegisterDeviceWithCallback(request *RegisterDeviceRequest,
 // RegisterDeviceRequest is the request struct for api RegisterDevice
 type RegisterDeviceRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
+	PinCode       string `position:"Query" name:"PinCode"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
+	Nickname      string `position:"Query" name:"Nickname"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 	DevEui        string `position:"Query" name:"DevEui"`
-	PinCode       string `position:"Query" name:"PinCode"`
-	Nickname      string `position:"Query" name:"Nickname"`
 }
 
 // RegisterDeviceResponse is the response struct for api RegisterDevice
 type RegisterDeviceResponse struct {
 	*responses.BaseResponse
-	RequestId    string              `json:"RequestId" xml:"RequestId"`
-	Success      bool                `json:"Success" xml:"Success"`
-	Code         string              `json:"Code" xml:"Code"`
-	ErrorMessage string              `json:"ErrorMessage" xml:"ErrorMessage"`
-	Data         RegisterDeviceData0 `json:"Data" xml:"Data"`
-}
-
-type RegisterDeviceData0 struct {
-	IotId        string `json:"IotId" xml:"IotId"`
-	ProductKey   string `json:"ProductKey" xml:"ProductKey"`
-	DeviceName   string `json:"DeviceName" xml:"DeviceName"`
-	DeviceSecret string `json:"DeviceSecret" xml:"DeviceSecret"`
-	DevEui       string `json:"DevEui" xml:"DevEui"`
-	JoinEui      string `json:"JoinEui" xml:"JoinEui"`
-	Nickname     string `json:"Nickname" xml:"Nickname"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	Code         string `json:"Code" xml:"Code"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateRegisterDeviceRequest creates a request to invoke RegisterDevice API

+ 4 - 5
services/iot/remove_thing_topo.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,10 @@ func (client *Client) RemoveThingTopoWithCallback(request *RemoveThingTopoReques
 // RemoveThingTopoRequest is the request struct for api RemoveThingTopo
 type RemoveThingTopoRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
-	ProductKey    string `position:"Query" name:"ProductKey"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
+	ProductKey    string `position:"Query" name:"ProductKey"`
 }
 
 // RemoveThingTopoResponse is the response struct for api RemoveThingTopo

+ 3 - 4
services/iot/save_device_prop.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,9 +76,8 @@ func (client *Client) SaveDevicePropWithCallback(request *SaveDevicePropRequest,
 // SaveDevicePropRequest is the request struct for api SaveDeviceProp
 type SaveDevicePropRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
 	Props         string `position:"Query" name:"Props"`

+ 9 - 15
services/iot/set_device_desired_property.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,28 +76,22 @@ func (client *Client) SetDeviceDesiredPropertyWithCallback(request *SetDeviceDes
 // SetDeviceDesiredPropertyRequest is the request struct for api SetDeviceDesiredProperty
 type SetDeviceDesiredPropertyRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
+	Versions      string `position:"Query" name:"Versions"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
 	Items         string `position:"Query" name:"Items"`
-	Versions      string `position:"Query" name:"Versions"`
 }
 
 // SetDeviceDesiredPropertyResponse is the response struct for api SetDeviceDesiredProperty
 type SetDeviceDesiredPropertyResponse struct {
 	*responses.BaseResponse
-	RequestId    string                        `json:"RequestId" xml:"RequestId"`
-	Success      bool                          `json:"Success" xml:"Success"`
-	ErrorMessage string                        `json:"ErrorMessage" xml:"ErrorMessage"`
-	Code         string                        `json:"Code" xml:"Code"`
-	Data         SetDeviceDesiredPropertyData0 `json:"Data" xml:"Data"`
-}
-
-type SetDeviceDesiredPropertyData0 struct {
-	MessageId string `json:"MessageId" xml:"MessageId"`
-	Versions  string `json:"Versions" xml:"Versions"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code         string `json:"Code" xml:"Code"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateSetDeviceDesiredPropertyRequest creates a request to invoke SetDeviceDesiredProperty API

+ 3 - 4
services/iot/set_device_group_tags.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,10 +76,9 @@ func (client *Client) SetDeviceGroupTagsWithCallback(request *SetDeviceGroupTags
 // SetDeviceGroupTagsRequest is the request struct for api SetDeviceGroupTags
 type SetDeviceGroupTagsRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
+	TagString     string `position:"Query" name:"TagString"`
 	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	GroupId       string `position:"Query" name:"GroupId"`
-	TagString     string `position:"Query" name:"TagString"`
 }
 
 // SetDeviceGroupTagsResponse is the response struct for api SetDeviceGroupTags

+ 8 - 13
services/iot/set_device_property.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,9 +76,8 @@ func (client *Client) SetDevicePropertyWithCallback(request *SetDevicePropertyRe
 // SetDevicePropertyRequest is the request struct for api SetDeviceProperty
 type SetDevicePropertyRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	IotId         string `position:"Query" name:"IotId"`
+	IotInstanceId string `position:"Query" name:"IotInstanceId"`
 	DeviceName    string `position:"Query" name:"DeviceName"`
 	ProductKey    string `position:"Query" name:"ProductKey"`
 	Items         string `position:"Query" name:"Items"`
@@ -87,15 +86,11 @@ type SetDevicePropertyRequest struct {
 // SetDevicePropertyResponse is the response struct for api SetDeviceProperty
 type SetDevicePropertyResponse struct {
 	*responses.BaseResponse
-	RequestId    string                 `json:"RequestId" xml:"RequestId"`
-	Success      bool                   `json:"Success" xml:"Success"`
-	ErrorMessage string                 `json:"ErrorMessage" xml:"ErrorMessage"`
-	Code         string                 `json:"Code" xml:"Code"`
-	Data         SetDevicePropertyData0 `json:"Data" xml:"Data"`
-}
-
-type SetDevicePropertyData0 struct {
-	MessageId string `json:"MessageId" xml:"MessageId"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Code         string `json:"Code" xml:"Code"`
+	Data         Data   `json:"Data" xml:"Data"`
 }
 
 // CreateSetDevicePropertyRequest creates a request to invoke SetDeviceProperty API

+ 6 - 7
services/iot/set_devices_property.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,11 +76,10 @@ func (client *Client) SetDevicesPropertyWithCallback(request *SetDevicesProperty
 // SetDevicesPropertyRequest is the request struct for api SetDevicesProperty
 type SetDevicesPropertyRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string   `position:"Query" name:"AccessKeyId"`
-	IotInstanceId string   `position:"Query" name:"IotInstanceId"`
-	DeviceName    []string `position:"Query" name:"DeviceName" type:"Repeated"`
-	ProductKey    string   `position:"Query" name:"ProductKey"`
-	Items         string   `position:"Query" name:"Items"`
+	IotInstanceId string    `position:"Query" name:"IotInstanceId"`
+	DeviceName    *[]string `position:"Query" name:"DeviceName"  type:"Repeated"`
+	ProductKey    string    `position:"Query" name:"ProductKey"`
+	Items         string    `position:"Query" name:"Items"`
 }
 
 // SetDevicesPropertyResponse is the response struct for api SetDevicesProperty

+ 2 - 3
services/iot/start_rule.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) StartRuleWithCallback(request *StartRuleRequest, callback
 // StartRuleRequest is the request struct for api StartRule
 type StartRuleRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	RuleId        requests.Integer `position:"Query" name:"RuleId"`
 }

+ 2 - 3
services/iot/stop_rule.go

@@ -1,3 +1,5 @@
+package iot
+
 //Licensed under the Apache License, Version 2.0 (the "License");
 //you may not use this file except in compliance with the License.
 //You may obtain a copy of the License at
@@ -13,8 +15,6 @@
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-package iot
-
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,7 +76,6 @@ func (client *Client) StopRuleWithCallback(request *StopRuleRequest, callback fu
 // StopRuleRequest is the request struct for api StopRule
 type StopRuleRequest struct {
 	*requests.RpcRequest
-	AccessKeyId   string           `position:"Query" name:"AccessKeyId"`
 	IotInstanceId string           `position:"Query" name:"IotInstanceId"`
 	RuleId        requests.Integer `position:"Query" name:"RuleId"`
 }

+ 24 - 0
services/iot/struct_apply_device_info.go

@@ -0,0 +1,24 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ApplyDeviceInfo is a nested struct in iot response
+type ApplyDeviceInfo struct {
+	DeviceId     string `json:"DeviceId" xml:"DeviceId"`
+	DeviceName   string `json:"DeviceName" xml:"DeviceName"`
+	DeviceSecret string `json:"DeviceSecret" xml:"DeviceSecret"`
+	IotId        string `json:"IotId" xml:"IotId"`
+}

+ 21 - 0
services/iot/struct_apply_device_list.go

@@ -0,0 +1,21 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ApplyDeviceList is a nested struct in iot response
+type ApplyDeviceList struct {
+	ApplyDeviceInfo []ApplyDeviceInfo `json:"ApplyDeviceInfo" xml:"ApplyDeviceInfo"`
+}

+ 76 - 0
services/iot/struct_data.go

@@ -0,0 +1,76 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Data is a nested struct in iot response
+type Data struct {
+	DataFormat            int                              `json:"DataFormat" xml:"DataFormat"`
+	RequestProtocol       string                           `json:"RequestProtocol" xml:"RequestProtocol"`
+	UtcCreate             string                           `json:"UtcCreate" xml:"UtcCreate"`
+	DeviceActive          int                              `json:"DeviceActive" xml:"DeviceActive"`
+	RequestMethod         string                           `json:"RequestMethod" xml:"RequestMethod"`
+	Nickname              string                           `json:"Nickname" xml:"Nickname"`
+	CategoryName          string                           `json:"CategoryName" xml:"CategoryName"`
+	PageNo                int                              `json:"PageNo" xml:"PageNo"`
+	DevEui                string                           `json:"DevEui" xml:"DevEui"`
+	GroupId               string                           `json:"GroupId" xml:"GroupId"`
+	OnlineCount           int64                            `json:"onlineCount" xml:"onlineCount"`
+	FileId                string                           `json:"FileId" xml:"FileId"`
+	LastUpdateTime        int64                            `json:"LastUpdateTime" xml:"LastUpdateTime"`
+	Versions              string                           `json:"Versions" xml:"Versions"`
+	AliyunCommodityCode   string                           `json:"AliyunCommodityCode" xml:"AliyunCommodityCode"`
+	UtcCreatedOn          string                           `json:"UtcCreatedOn" xml:"UtcCreatedOn"`
+	ApplyId               int64                            `json:"ApplyId" xml:"ApplyId"`
+	GmtCreate             int64                            `json:"GmtCreate" xml:"GmtCreate"`
+	MessageId             string                           `json:"MessageId" xml:"MessageId"`
+	DeviceName            string                           `json:"DeviceName" xml:"DeviceName"`
+	Size                  string                           `json:"Size" xml:"Size"`
+	Id2                   bool                             `json:"Id2" xml:"Id2"`
+	Owner                 bool                             `json:"Owner" xml:"Owner"`
+	NodeType              int                              `json:"NodeType" xml:"NodeType"`
+	ApiSrn                string                           `json:"ApiSrn" xml:"ApiSrn"`
+	Name                  string                           `json:"Name" xml:"Name"`
+	ProductName           string                           `json:"ProductName" xml:"ProductName"`
+	GroupName             string                           `json:"GroupName" xml:"GroupName"`
+	DownloadUrl           string                           `json:"DownloadUrl" xml:"DownloadUrl"`
+	CategoryKey           string                           `json:"CategoryKey" xml:"CategoryKey"`
+	CreateTime            int64                            `json:"CreateTime" xml:"CreateTime"`
+	PageSize              int                              `json:"PageSize" xml:"PageSize"`
+	DeviceCount           int64                            `json:"deviceCount" xml:"deviceCount"`
+	ActiveCount           int64                            `json:"activeCount" xml:"activeCount"`
+	DateFormat            string                           `json:"DateFormat" xml:"DateFormat"`
+	Description           string                           `json:"Description" xml:"Description"`
+	ApiPath               string                           `json:"ApiPath" xml:"ApiPath"`
+	DeviceOnline          int                              `json:"DeviceOnline" xml:"DeviceOnline"`
+	Status                int                              `json:"Status" xml:"Status"`
+	ProductSecret         string                           `json:"ProductSecret" xml:"ProductSecret"`
+	DeviceSecret          string                           `json:"DeviceSecret" xml:"DeviceSecret"`
+	Result                string                           `json:"Result" xml:"Result"`
+	ProductKey            string                           `json:"ProductKey" xml:"ProductKey"`
+	DisplayName           string                           `json:"DisplayName" xml:"DisplayName"`
+	JoinEui               string                           `json:"JoinEui" xml:"JoinEui"`
+	IotId                 string                           `json:"IotId" xml:"IotId"`
+	GroupDesc             string                           `json:"GroupDesc" xml:"GroupDesc"`
+	DeviceCount           int                              `json:"DeviceCount" xml:"DeviceCount"`
+	ProtocolType          string                           `json:"ProtocolType" xml:"ProtocolType"`
+	ProductStatus         string                           `json:"ProductStatus" xml:"ProductStatus"`
+	NetType               int                              `json:"NetType" xml:"NetType"`
+	FieldNameList         FieldNameList                    `json:"FieldNameList" xml:"FieldNameList"`
+	InvalidDeviceNameList InvalidDeviceNameList            `json:"InvalidDeviceNameList" xml:"InvalidDeviceNameList"`
+	ResultList            ResultList                       `json:"ResultList" xml:"ResultList"`
+	SqlTemplateDTO        SqlTemplateDTO                   `json:"SqlTemplateDTO" xml:"SqlTemplateDTO"`
+	List                  ListInQueryDeviceDesiredProperty `json:"List" xml:"List"`
+}

+ 21 - 0
services/iot/struct_data_in_get_device_status.go

@@ -0,0 +1,21 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInGetDeviceStatus is a nested struct in iot response
+type DataInGetDeviceStatus struct {
+	Status string `json:"Status" xml:"Status"`
+}

+ 36 - 0
services/iot/struct_data_in_get_gateway_by_sub_device.go

@@ -0,0 +1,36 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInGetGatewayBySubDevice is a nested struct in iot response
+type DataInGetGatewayBySubDevice struct {
+	ProductKey      string `json:"ProductKey" xml:"ProductKey"`
+	ProductName     string `json:"ProductName" xml:"ProductName"`
+	DeviceSecret    string `json:"DeviceSecret" xml:"DeviceSecret"`
+	DeviceName      string `json:"DeviceName" xml:"DeviceName"`
+	FirmwareVersion string `json:"FirmwareVersion" xml:"FirmwareVersion"`
+	GmtCreate       string `json:"GmtCreate" xml:"GmtCreate"`
+	UtcCreate       string `json:"UtcCreate" xml:"UtcCreate"`
+	GmtActive       string `json:"GmtActive" xml:"GmtActive"`
+	UtcActive       string `json:"UtcActive" xml:"UtcActive"`
+	GmtOnline       string `json:"GmtOnline" xml:"GmtOnline"`
+	UtcOnline       string `json:"UtcOnline" xml:"UtcOnline"`
+	Status          string `json:"Status" xml:"Status"`
+	IpAddress       string `json:"IpAddress" xml:"IpAddress"`
+	NodeType        string `json:"NodeType" xml:"NodeType"`
+	Region          string `json:"region" xml:"region"`
+	IotId           string `json:"iotId" xml:"iotId"`
+}

+ 25 - 0
services/iot/struct_data_in_get_thing_topo.go

@@ -0,0 +1,25 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInGetThingTopo is a nested struct in iot response
+type DataInGetThingTopo struct {
+	Total       int64              `json:"Total" xml:"Total"`
+	CurrentPage int                `json:"CurrentPage" xml:"CurrentPage"`
+	PageSize    int                `json:"PageSize" xml:"PageSize"`
+	PageCount   int64              `json:"PageCount" xml:"PageCount"`
+	List        ListInGetThingTopo `json:"List" xml:"List"`
+}

+ 21 - 0
services/iot/struct_data_in_list_product_tags.go

@@ -0,0 +1,21 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInListProductTags is a nested struct in iot response
+type DataInListProductTags struct {
+	ProductTag []ProductTag `json:"ProductTag" xml:"ProductTag"`
+}

+ 21 - 0
services/iot/struct_data_in_list_rule.go

@@ -0,0 +1,21 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInListRule is a nested struct in iot response
+type DataInListRule struct {
+	RuleInfo []RuleInfo `json:"RuleInfo" xml:"RuleInfo"`
+}

+ 21 - 0
services/iot/struct_data_in_query_app_device_list.go

@@ -0,0 +1,21 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInQueryAppDeviceList is a nested struct in iot response
+type DataInQueryAppDeviceList struct {
+	DataItem []DataItem `json:"DataItem" xml:"DataItem"`
+}

+ 23 - 0
services/iot/struct_data_in_query_batch_register_device_status.go

@@ -0,0 +1,23 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInQueryBatchRegisterDeviceStatus is a nested struct in iot response
+type DataInQueryBatchRegisterDeviceStatus struct {
+	Status      string      `json:"Status" xml:"Status"`
+	ValidList   ValidList   `json:"ValidList" xml:"ValidList"`
+	InvalidList InvalidList `json:"InvalidList" xml:"InvalidList"`
+}

+ 21 - 0
services/iot/struct_data_in_query_device.go

@@ -0,0 +1,21 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInQueryDevice is a nested struct in iot response
+type DataInQueryDevice struct {
+	DeviceInfo []DeviceInfo `json:"DeviceInfo" xml:"DeviceInfo"`
+}

+ 21 - 0
services/iot/struct_data_in_query_device_by_tags.go

@@ -0,0 +1,21 @@
+package iot
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInQueryDeviceByTags is a nested struct in iot response
+type DataInQueryDeviceByTags struct {
+	SimpleDeviceInfo []SimpleDeviceInfo `json:"SimpleDeviceInfo" xml:"SimpleDeviceInfo"`
+}

部分文件因文件數量過多而無法顯示