Browse Source

Generated 2018-01-20 for Iot

sdk-team 6 years ago
parent
commit
c3758bf00f

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-06-14 Version: 1.60.46
+- Generated 2018-01-20 for `Iot`
+
 2019-06-14 Version: 1.60.45
 1. govendor rds sdk code problem.
 

+ 5 - 5
services/iot/query_device_statistics.go

@@ -83,11 +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         Data   `json:"Data" xml:"Data"`
+	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         DataInQueryDeviceStatistics `json:"Data" xml:"Data"`
 }
 
 // CreateQueryDeviceStatisticsRequest creates a request to invoke QueryDeviceStatistics API

+ 0 - 3
services/iot/struct_data.go

@@ -27,7 +27,6 @@ type Data struct {
 	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"`
@@ -49,8 +48,6 @@ type Data struct {
 	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"`

+ 23 - 0
services/iot/struct_data_in_query_device_statistics.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.
+
+// DataInQueryDeviceStatistics is a nested struct in iot response
+type DataInQueryDeviceStatistics struct {
+	DeviceCount int64 `json:"deviceCount" xml:"deviceCount"`
+	OnlineCount int64 `json:"onlineCount" xml:"onlineCount"`
+	ActiveCount int64 `json:"activeCount" xml:"activeCount"`
+}