Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit 1a74770

Browse files
committed
Update OTA API, including ListOTAModuleByProduct, DeleteOTAModule.
1 parent 0fd8ffa commit 1a74770

36 files changed

+3764
-37
lines changed

aliyun-php-sdk-iot/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-12-29 Version: 7.15.0
2+
- Update OTA API, including ListOTAModuleByProduct, DeleteOTAModule.
3+
14
2020-10-16 Version: 7.15.0
25
- Update OTA API, including ListOTAModuleByProduct, DeleteOTAModule.
36

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
<?php
2+
3+
namespace Iot\Request\V20180120;
4+
5+
/**
6+
* @deprecated Please use https://github.com/aliyun/openapi-sdk-php
7+
*
8+
* Request of BatchPub
9+
*
10+
* @method string getMessageContent()
11+
* @method string getQos()
12+
* @method string getIotInstanceId()
13+
* @method string getTopicShortName()
14+
* @method string getProductKey()
15+
* @method string getApiProduct()
16+
* @method string getApiRevision()
17+
* @method array getDeviceNames()
18+
*/
19+
class BatchPubRequest extends \RpcAcsRequest
20+
{
21+
22+
/**
23+
* @var string
24+
*/
25+
protected $method = 'POST';
26+
27+
/**
28+
* Class constructor.
29+
*/
30+
public function __construct()
31+
{
32+
parent::__construct(
33+
'Iot',
34+
'2018-01-20',
35+
'BatchPub',
36+
'iot'
37+
);
38+
}
39+
40+
/**
41+
* @param string $messageContent
42+
*
43+
* @return $this
44+
*/
45+
public function setMessageContent($messageContent)
46+
{
47+
$this->requestParameters['MessageContent'] = $messageContent;
48+
$this->queryParameters['MessageContent'] = $messageContent;
49+
50+
return $this;
51+
}
52+
53+
/**
54+
* @param string $qos
55+
*
56+
* @return $this
57+
*/
58+
public function setQos($qos)
59+
{
60+
$this->requestParameters['Qos'] = $qos;
61+
$this->queryParameters['Qos'] = $qos;
62+
63+
return $this;
64+
}
65+
66+
/**
67+
* @param string $iotInstanceId
68+
*
69+
* @return $this
70+
*/
71+
public function setIotInstanceId($iotInstanceId)
72+
{
73+
$this->requestParameters['IotInstanceId'] = $iotInstanceId;
74+
$this->queryParameters['IotInstanceId'] = $iotInstanceId;
75+
76+
return $this;
77+
}
78+
79+
/**
80+
* @param string $topicShortName
81+
*
82+
* @return $this
83+
*/
84+
public function setTopicShortName($topicShortName)
85+
{
86+
$this->requestParameters['TopicShortName'] = $topicShortName;
87+
$this->queryParameters['TopicShortName'] = $topicShortName;
88+
89+
return $this;
90+
}
91+
92+
/**
93+
* @param string $productKey
94+
*
95+
* @return $this
96+
*/
97+
public function setProductKey($productKey)
98+
{
99+
$this->requestParameters['ProductKey'] = $productKey;
100+
$this->queryParameters['ProductKey'] = $productKey;
101+
102+
return $this;
103+
}
104+
105+
/**
106+
* @param string $apiProduct
107+
*
108+
* @return $this
109+
*/
110+
public function setApiProduct($apiProduct)
111+
{
112+
$this->requestParameters['ApiProduct'] = $apiProduct;
113+
$this->queryParameters['ApiProduct'] = $apiProduct;
114+
115+
return $this;
116+
}
117+
118+
/**
119+
* @param string $apiRevision
120+
*
121+
* @return $this
122+
*/
123+
public function setApiRevision($apiRevision)
124+
{
125+
$this->requestParameters['ApiRevision'] = $apiRevision;
126+
$this->queryParameters['ApiRevision'] = $apiRevision;
127+
128+
return $this;
129+
}
130+
131+
/**
132+
* @param array $deviceName
133+
*
134+
* @return $this
135+
*/
136+
public function setDeviceNames(array $deviceName)
137+
{
138+
$this->requestParameters['DeviceNames'] = $deviceName;
139+
foreach ($deviceName as $i => $iValue) {
140+
$this->queryParameters['DeviceName.' . ($i + 1)] = $iValue;
141+
}
142+
143+
return $this;
144+
}
145+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?php
2+
3+
namespace Iot\Request\V20180120;
4+
5+
/**
6+
* @deprecated Please use https://github.com/aliyun/openapi-sdk-php
7+
*
8+
* Request of CancelSpeechModelPushJob
9+
*
10+
* @method string getApiProduct()
11+
* @method string getPushJobCode()
12+
* @method string getApiRevision()
13+
*/
14+
class CancelSpeechModelPushJobRequest extends \RpcAcsRequest
15+
{
16+
17+
/**
18+
* @var string
19+
*/
20+
protected $method = 'POST';
21+
22+
/**
23+
* Class constructor.
24+
*/
25+
public function __construct()
26+
{
27+
parent::__construct(
28+
'Iot',
29+
'2018-01-20',
30+
'CancelSpeechModelPushJob',
31+
'iot'
32+
);
33+
}
34+
35+
/**
36+
* @param string $apiProduct
37+
*
38+
* @return $this
39+
*/
40+
public function setApiProduct($apiProduct)
41+
{
42+
$this->requestParameters['ApiProduct'] = $apiProduct;
43+
$this->queryParameters['ApiProduct'] = $apiProduct;
44+
45+
return $this;
46+
}
47+
48+
/**
49+
* @param string $pushJobCode
50+
*
51+
* @return $this
52+
*/
53+
public function setPushJobCode($pushJobCode)
54+
{
55+
$this->requestParameters['PushJobCode'] = $pushJobCode;
56+
$this->queryParameters['PushJobCode'] = $pushJobCode;
57+
58+
return $this;
59+
}
60+
61+
/**
62+
* @param string $apiRevision
63+
*
64+
* @return $this
65+
*/
66+
public function setApiRevision($apiRevision)
67+
{
68+
$this->requestParameters['ApiRevision'] = $apiRevision;
69+
$this->queryParameters['ApiRevision'] = $apiRevision;
70+
71+
return $this;
72+
}
73+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?php
2+
3+
namespace Iot\Request\V20180120;
4+
5+
/**
6+
* @deprecated Please use https://github.com/aliyun/openapi-sdk-php
7+
*
8+
* Request of CheckSolutionSigned
9+
*
10+
* @method string getType()
11+
* @method string getApiProduct()
12+
* @method string getApiRevision()
13+
*/
14+
class CheckSolutionSignedRequest extends \RpcAcsRequest
15+
{
16+
17+
/**
18+
* @var string
19+
*/
20+
protected $method = 'POST';
21+
22+
/**
23+
* Class constructor.
24+
*/
25+
public function __construct()
26+
{
27+
parent::__construct(
28+
'Iot',
29+
'2018-01-20',
30+
'CheckSolutionSigned',
31+
'iot'
32+
);
33+
}
34+
35+
/**
36+
* @param string $type
37+
*
38+
* @return $this
39+
*/
40+
public function setType($type)
41+
{
42+
$this->requestParameters['Type'] = $type;
43+
$this->queryParameters['Type'] = $type;
44+
45+
return $this;
46+
}
47+
48+
/**
49+
* @param string $apiProduct
50+
*
51+
* @return $this
52+
*/
53+
public function setApiProduct($apiProduct)
54+
{
55+
$this->requestParameters['ApiProduct'] = $apiProduct;
56+
$this->queryParameters['ApiProduct'] = $apiProduct;
57+
58+
return $this;
59+
}
60+
61+
/**
62+
* @param string $apiRevision
63+
*
64+
* @return $this
65+
*/
66+
public function setApiRevision($apiRevision)
67+
{
68+
$this->requestParameters['ApiRevision'] = $apiRevision;
69+
$this->queryParameters['ApiRevision'] = $apiRevision;
70+
71+
return $this;
72+
}
73+
}

0 commit comments

Comments
 (0)