1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\MoPen\V20180211; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\ApiResolverTrait; |
6
|
|
|
use AlibabaCloud\Rpc; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Resolve Api based on the method name. |
10
|
|
|
* |
11
|
|
|
* @method MoPenSendMqttMessage moPenSendMqttMessage(array $options = []) |
12
|
|
|
* @method MoPenDoRecognize moPenDoRecognize(array $options = []) |
13
|
|
|
* @method MoPenQueryCanvas moPenQueryCanvas(array $options = []) |
14
|
|
|
* @method MoPenFindGroup moPenFindGroup(array $options = []) |
15
|
|
|
* @method MoPenDeleteGroupMember moPenDeleteGroupMember(array $options = []) |
16
|
|
|
* @method MoPenBindIsv moPenBindIsv(array $options = []) |
17
|
|
|
* @method MoPenDeleteGroup moPenDeleteGroup(array $options = []) |
18
|
|
|
* @method MoPenAddGroupMember moPenAddGroupMember(array $options = []) |
19
|
|
|
* @method MopenCreateGroup mopenCreateGroup(array $options = []) |
20
|
|
|
* @method MoPenCreateDevice moPenCreateDevice(array $options = []) |
21
|
|
|
*/ |
22
|
|
|
class MoPenApiResolver |
23
|
|
|
{ |
24
|
|
|
use ApiResolverTrait; |
25
|
|
|
} |
26
|
|
|
|
27
|
|
|
class V20180211Rpc extends Rpc |
28
|
|
|
{ |
29
|
|
|
/** @var string */ |
30
|
|
|
public $product = 'MoPen'; |
31
|
|
|
|
32
|
|
|
/** @var string */ |
33
|
|
|
public $version = '2018-02-11'; |
34
|
|
|
|
35
|
|
|
/** @var string */ |
36
|
|
|
public $method = 'POST'; |
37
|
|
|
|
38
|
|
|
/** @var string */ |
39
|
|
|
public $scheme = 'https'; |
40
|
|
|
|
41
|
|
|
/** @var string */ |
42
|
|
|
public $serviceCode = 'mopen'; |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @method string getPayload() |
47
|
|
|
* @method string getDeviceName() |
48
|
|
|
*/ |
49
|
|
|
class MoPenSendMqttMessage extends V20180211Rpc |
50
|
|
|
{ |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @param string $value |
54
|
|
|
* |
55
|
|
|
* @return $this |
56
|
|
|
*/ |
57
|
|
|
public function withPayload($value) |
58
|
|
|
{ |
59
|
|
|
$this->data['Payload'] = $value; |
60
|
|
|
$this->options['form_params']['Payload'] = $value; |
61
|
|
|
|
62
|
|
|
return $this; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @param string $value |
67
|
|
|
* |
68
|
|
|
* @return $this |
69
|
|
|
*/ |
70
|
|
|
public function withDeviceName($value) |
71
|
|
|
{ |
72
|
|
|
$this->data['DeviceName'] = $value; |
73
|
|
|
$this->options['form_params']['DeviceName'] = $value; |
74
|
|
|
|
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @method string getCanvasId() |
81
|
|
|
* @method string getEndY() |
82
|
|
|
* @method string getEndX() |
83
|
|
|
* @method string getJsonConf() |
84
|
|
|
* @method string getExportType() |
85
|
|
|
* @method string getStartY() |
86
|
|
|
* @method string getStartX() |
87
|
|
|
*/ |
88
|
|
|
class MoPenDoRecognize extends V20180211Rpc |
89
|
|
|
{ |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* @param string $value |
93
|
|
|
* |
94
|
|
|
* @return $this |
95
|
|
|
*/ |
96
|
|
|
public function withCanvasId($value) |
97
|
|
|
{ |
98
|
|
|
$this->data['CanvasId'] = $value; |
99
|
|
|
$this->options['form_params']['CanvasId'] = $value; |
100
|
|
|
|
101
|
|
|
return $this; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @param string $value |
106
|
|
|
* |
107
|
|
|
* @return $this |
108
|
|
|
*/ |
109
|
|
|
public function withEndY($value) |
110
|
|
|
{ |
111
|
|
|
$this->data['EndY'] = $value; |
112
|
|
|
$this->options['form_params']['EndY'] = $value; |
113
|
|
|
|
114
|
|
|
return $this; |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* @param string $value |
119
|
|
|
* |
120
|
|
|
* @return $this |
121
|
|
|
*/ |
122
|
|
|
public function withEndX($value) |
123
|
|
|
{ |
124
|
|
|
$this->data['EndX'] = $value; |
125
|
|
|
$this->options['form_params']['EndX'] = $value; |
126
|
|
|
|
127
|
|
|
return $this; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @param string $value |
132
|
|
|
* |
133
|
|
|
* @return $this |
134
|
|
|
*/ |
135
|
|
|
public function withJsonConf($value) |
136
|
|
|
{ |
137
|
|
|
$this->data['JsonConf'] = $value; |
138
|
|
|
$this->options['form_params']['JsonConf'] = $value; |
139
|
|
|
|
140
|
|
|
return $this; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @param string $value |
145
|
|
|
* |
146
|
|
|
* @return $this |
147
|
|
|
*/ |
148
|
|
|
public function withExportType($value) |
149
|
|
|
{ |
150
|
|
|
$this->data['ExportType'] = $value; |
151
|
|
|
$this->options['form_params']['ExportType'] = $value; |
152
|
|
|
|
153
|
|
|
return $this; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* @param string $value |
158
|
|
|
* |
159
|
|
|
* @return $this |
160
|
|
|
*/ |
161
|
|
|
public function withStartY($value) |
162
|
|
|
{ |
163
|
|
|
$this->data['StartY'] = $value; |
164
|
|
|
$this->options['form_params']['StartY'] = $value; |
165
|
|
|
|
166
|
|
|
return $this; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @param string $value |
171
|
|
|
* |
172
|
|
|
* @return $this |
173
|
|
|
*/ |
174
|
|
|
public function withStartX($value) |
175
|
|
|
{ |
176
|
|
|
$this->data['StartX'] = $value; |
177
|
|
|
$this->options['form_params']['StartX'] = $value; |
178
|
|
|
|
179
|
|
|
return $this; |
180
|
|
|
} |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @method string getDeviceName() |
185
|
|
|
* @method string getSessionId() |
186
|
|
|
* @method string getPageId() |
187
|
|
|
* @method string getStatus() |
188
|
|
|
*/ |
189
|
|
|
class MoPenQueryCanvas extends V20180211Rpc |
190
|
|
|
{ |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* @param string $value |
194
|
|
|
* |
195
|
|
|
* @return $this |
196
|
|
|
*/ |
197
|
|
|
public function withDeviceName($value) |
198
|
|
|
{ |
199
|
|
|
$this->data['DeviceName'] = $value; |
200
|
|
|
$this->options['form_params']['DeviceName'] = $value; |
201
|
|
|
|
202
|
|
|
return $this; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* @param string $value |
207
|
|
|
* |
208
|
|
|
* @return $this |
209
|
|
|
*/ |
210
|
|
|
public function withSessionId($value) |
211
|
|
|
{ |
212
|
|
|
$this->data['SessionId'] = $value; |
213
|
|
|
$this->options['form_params']['SessionId'] = $value; |
214
|
|
|
|
215
|
|
|
return $this; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @param string $value |
220
|
|
|
* |
221
|
|
|
* @return $this |
222
|
|
|
*/ |
223
|
|
|
public function withPageId($value) |
224
|
|
|
{ |
225
|
|
|
$this->data['PageId'] = $value; |
226
|
|
|
$this->options['form_params']['PageId'] = $value; |
227
|
|
|
|
228
|
|
|
return $this; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* @param string $value |
233
|
|
|
* |
234
|
|
|
* @return $this |
235
|
|
|
*/ |
236
|
|
|
public function withStatus($value) |
237
|
|
|
{ |
238
|
|
|
$this->data['Status'] = $value; |
239
|
|
|
$this->options['form_params']['Status'] = $value; |
240
|
|
|
|
241
|
|
|
return $this; |
242
|
|
|
} |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* @method string getCreator() |
247
|
|
|
*/ |
248
|
|
|
class MoPenFindGroup extends V20180211Rpc |
249
|
|
|
{ |
250
|
|
|
|
251
|
|
|
/** |
252
|
|
|
* @param string $value |
253
|
|
|
* |
254
|
|
|
* @return $this |
255
|
|
|
*/ |
256
|
|
|
public function withCreator($value) |
257
|
|
|
{ |
258
|
|
|
$this->data['Creator'] = $value; |
259
|
|
|
$this->options['form_params']['Creator'] = $value; |
260
|
|
|
|
261
|
|
|
return $this; |
262
|
|
|
} |
263
|
|
|
} |
264
|
|
|
|
265
|
|
|
/** |
266
|
|
|
* @method string getGroupId() |
267
|
|
|
* @method string getDeviceName() |
268
|
|
|
*/ |
269
|
|
|
class MoPenDeleteGroupMember extends V20180211Rpc |
270
|
|
|
{ |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* @param string $value |
274
|
|
|
* |
275
|
|
|
* @return $this |
276
|
|
|
*/ |
277
|
|
|
public function withGroupId($value) |
278
|
|
|
{ |
279
|
|
|
$this->data['GroupId'] = $value; |
280
|
|
|
$this->options['form_params']['GroupId'] = $value; |
281
|
|
|
|
282
|
|
|
return $this; |
283
|
|
|
} |
284
|
|
|
|
285
|
|
|
/** |
286
|
|
|
* @param string $value |
287
|
|
|
* |
288
|
|
|
* @return $this |
289
|
|
|
*/ |
290
|
|
|
public function withDeviceName($value) |
291
|
|
|
{ |
292
|
|
|
$this->data['DeviceName'] = $value; |
293
|
|
|
$this->options['form_params']['DeviceName'] = $value; |
294
|
|
|
|
295
|
|
|
return $this; |
296
|
|
|
} |
297
|
|
|
} |
298
|
|
|
|
299
|
|
|
/** |
300
|
|
|
* @method string getOrderKey() |
301
|
|
|
* @method string getDeviceName() |
302
|
|
|
*/ |
303
|
|
|
class MoPenBindIsv extends V20180211Rpc |
304
|
|
|
{ |
305
|
|
|
|
306
|
|
|
/** |
307
|
|
|
* @param string $value |
308
|
|
|
* |
309
|
|
|
* @return $this |
310
|
|
|
*/ |
311
|
|
|
public function withOrderKey($value) |
312
|
|
|
{ |
313
|
|
|
$this->data['OrderKey'] = $value; |
314
|
|
|
$this->options['form_params']['OrderKey'] = $value; |
315
|
|
|
|
316
|
|
|
return $this; |
317
|
|
|
} |
318
|
|
|
|
319
|
|
|
/** |
320
|
|
|
* @param string $value |
321
|
|
|
* |
322
|
|
|
* @return $this |
323
|
|
|
*/ |
324
|
|
|
public function withDeviceName($value) |
325
|
|
|
{ |
326
|
|
|
$this->data['DeviceName'] = $value; |
327
|
|
|
$this->options['form_params']['DeviceName'] = $value; |
328
|
|
|
|
329
|
|
|
return $this; |
330
|
|
|
} |
331
|
|
|
} |
332
|
|
|
|
333
|
|
|
/** |
334
|
|
|
* @method string getGroupId() |
335
|
|
|
*/ |
336
|
|
|
class MoPenDeleteGroup extends V20180211Rpc |
337
|
|
|
{ |
338
|
|
|
|
339
|
|
|
/** |
340
|
|
|
* @param string $value |
341
|
|
|
* |
342
|
|
|
* @return $this |
343
|
|
|
*/ |
344
|
|
|
public function withGroupId($value) |
345
|
|
|
{ |
346
|
|
|
$this->data['GroupId'] = $value; |
347
|
|
|
$this->options['form_params']['GroupId'] = $value; |
348
|
|
|
|
349
|
|
|
return $this; |
350
|
|
|
} |
351
|
|
|
} |
352
|
|
|
|
353
|
|
|
/** |
354
|
|
|
* @method string getGroupId() |
355
|
|
|
* @method string getDeviceName() |
356
|
|
|
*/ |
357
|
|
|
class MoPenAddGroupMember extends V20180211Rpc |
358
|
|
|
{ |
359
|
|
|
|
360
|
|
|
/** |
361
|
|
|
* @param string $value |
362
|
|
|
* |
363
|
|
|
* @return $this |
364
|
|
|
*/ |
365
|
|
|
public function withGroupId($value) |
366
|
|
|
{ |
367
|
|
|
$this->data['GroupId'] = $value; |
368
|
|
|
$this->options['form_params']['GroupId'] = $value; |
369
|
|
|
|
370
|
|
|
return $this; |
371
|
|
|
} |
372
|
|
|
|
373
|
|
|
/** |
374
|
|
|
* @param string $value |
375
|
|
|
* |
376
|
|
|
* @return $this |
377
|
|
|
*/ |
378
|
|
|
public function withDeviceName($value) |
379
|
|
|
{ |
380
|
|
|
$this->data['DeviceName'] = $value; |
381
|
|
|
$this->options['form_params']['DeviceName'] = $value; |
382
|
|
|
|
383
|
|
|
return $this; |
384
|
|
|
} |
385
|
|
|
} |
386
|
|
|
|
387
|
|
|
/** |
388
|
|
|
* @method string getCreator() |
389
|
|
|
*/ |
390
|
|
|
class MopenCreateGroup extends V20180211Rpc |
391
|
|
|
{ |
392
|
|
|
|
393
|
|
|
/** |
394
|
|
|
* @param string $value |
395
|
|
|
* |
396
|
|
|
* @return $this |
397
|
|
|
*/ |
398
|
|
|
public function withCreator($value) |
399
|
|
|
{ |
400
|
|
|
$this->data['Creator'] = $value; |
401
|
|
|
$this->options['form_params']['Creator'] = $value; |
402
|
|
|
|
403
|
|
|
return $this; |
404
|
|
|
} |
405
|
|
|
} |
406
|
|
|
|
407
|
|
|
/** |
408
|
|
|
* @method string getDeviceName() |
409
|
|
|
* @method string getDeviceType() |
410
|
|
|
*/ |
411
|
|
|
class MoPenCreateDevice extends V20180211Rpc |
412
|
|
|
{ |
413
|
|
|
|
414
|
|
|
/** |
415
|
|
|
* @param string $value |
416
|
|
|
* |
417
|
|
|
* @return $this |
418
|
|
|
*/ |
419
|
|
|
public function withDeviceName($value) |
420
|
|
|
{ |
421
|
|
|
$this->data['DeviceName'] = $value; |
422
|
|
|
$this->options['form_params']['DeviceName'] = $value; |
423
|
|
|
|
424
|
|
|
return $this; |
425
|
|
|
} |
426
|
|
|
|
427
|
|
|
/** |
428
|
|
|
* @param string $value |
429
|
|
|
* |
430
|
|
|
* @return $this |
431
|
|
|
*/ |
432
|
|
|
public function withDeviceType($value) |
433
|
|
|
{ |
434
|
|
|
$this->data['DeviceType'] = $value; |
435
|
|
|
$this->options['form_params']['DeviceType'] = $value; |
436
|
|
|
|
437
|
|
|
return $this; |
438
|
|
|
} |
439
|
|
|
} |
440
|
|
|
|