1+ // Copyright 2018 JDCLOUD.COM
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+ //
15+ // NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+ package apis
18+
19+ import (
20+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
21+ iotlink "github.com/jdcloud-api/jdcloud-sdk-go/services/iotlink/models"
22+ )
23+
24+ type RealNameQueryIotRequest struct {
25+
26+ core.JDCloudRequest
27+
28+ /* Region ID */
29+ RegionId string `json:"regionId"`
30+
31+ /* 物联网卡iccid */
32+ Iccid string `json:"iccid"`
33+ }
34+
35+ /*
36+ * param regionId: Region ID (Required)
37+ * param iccid: 物联网卡iccid (Required)
38+ *
39+ * @Deprecated, not compatible when mandatory parameters changed
40+ */
41+ func NewRealNameQueryIotRequest (
42+ regionId string ,
43+ iccid string ,
44+ ) * RealNameQueryIotRequest {
45+
46+ return & RealNameQueryIotRequest {
47+ JDCloudRequest : core.JDCloudRequest {
48+ URL : "/regions/{regionId}/realNameQueryIot" ,
49+ Method : "GET" ,
50+ Header : nil ,
51+ Version : "v1" ,
52+ },
53+ RegionId : regionId ,
54+ Iccid : iccid ,
55+ }
56+ }
57+
58+ /*
59+ * param regionId: Region ID (Required)
60+ * param iccid: 物联网卡iccid (Required)
61+ */
62+ func NewRealNameQueryIotRequestWithAllParams (
63+ regionId string ,
64+ iccid string ,
65+ ) * RealNameQueryIotRequest {
66+
67+ return & RealNameQueryIotRequest {
68+ JDCloudRequest : core.JDCloudRequest {
69+ URL : "/regions/{regionId}/realNameQueryIot" ,
70+ Method : "GET" ,
71+ Header : nil ,
72+ Version : "v1" ,
73+ },
74+ RegionId : regionId ,
75+ Iccid : iccid ,
76+ }
77+ }
78+
79+ /* This constructor has better compatible ability when API parameters changed */
80+ func NewRealNameQueryIotRequestWithoutParam () * RealNameQueryIotRequest {
81+
82+ return & RealNameQueryIotRequest {
83+ JDCloudRequest : core.JDCloudRequest {
84+ URL : "/regions/{regionId}/realNameQueryIot" ,
85+ Method : "GET" ,
86+ Header : nil ,
87+ Version : "v1" ,
88+ },
89+ }
90+ }
91+
92+ /* param regionId: Region ID(Required) */
93+ func (r * RealNameQueryIotRequest ) SetRegionId (regionId string ) {
94+ r .RegionId = regionId
95+ }
96+
97+ /* param iccid: 物联网卡iccid(Required) */
98+ func (r * RealNameQueryIotRequest ) SetIccid (iccid string ) {
99+ r .Iccid = iccid
100+ }
101+
102+ // GetRegionId returns path parameter 'regionId' if exist,
103+ // otherwise return empty string
104+ func (r RealNameQueryIotRequest ) GetRegionId () string {
105+ return r .RegionId
106+ }
107+
108+ type RealNameQueryIotResponse struct {
109+ RequestID string `json:"requestId"`
110+ Error core.ErrorResponse `json:"error"`
111+ Result RealNameQueryIotResult `json:"result"`
112+ }
113+
114+ type RealNameQueryIotResult struct {
115+ Status string `json:"status"`
116+ Message string `json:"message"`
117+ Result iotlink.RealNameQueryIotResp `json:"result"`
118+ }
0 commit comments