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

Commit 907dfb0

Browse files
committed
Update OTA API, including ListOTAModuleByProduct, DeleteOTAModule.
1 parent 32956c7 commit 907dfb0

File tree

86 files changed

+4799
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+4799
-0
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+
2021-02-19 Version: 7.15.0
2+
- Update OTA API, including ListOTAModuleByProduct, DeleteOTAModule.
3+
14
2020-12-29 Version: 7.15.0
25
- Update OTA API, including ListOTAModuleByProduct, DeleteOTAModule.
36

aliyun-php-sdk-iot/Iot/Request/V20180120/BatchAddDeviceGroupRelationsRequest.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*
88
* Request of BatchAddDeviceGroupRelations
99
*
10+
* @method string getRealTenantId()
11+
* @method string getRealTripartiteKey()
1012
* @method string getIotInstanceId()
1113
* @method string getGroupId()
1214
* @method string getApiProduct()
@@ -34,6 +36,32 @@ public function __construct()
3436
);
3537
}
3638

39+
/**
40+
* @param string $realTenantId
41+
*
42+
* @return $this
43+
*/
44+
public function setRealTenantId($realTenantId)
45+
{
46+
$this->requestParameters['RealTenantId'] = $realTenantId;
47+
$this->queryParameters['RealTenantId'] = $realTenantId;
48+
49+
return $this;
50+
}
51+
52+
/**
53+
* @param string $realTripartiteKey
54+
*
55+
* @return $this
56+
*/
57+
public function setRealTripartiteKey($realTripartiteKey)
58+
{
59+
$this->requestParameters['RealTripartiteKey'] = $realTripartiteKey;
60+
$this->queryParameters['RealTripartiteKey'] = $realTripartiteKey;
61+
62+
return $this;
63+
}
64+
3765
/**
3866
* @param string $iotInstanceId
3967
*
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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 BatchBindDevicesIntoProject
9+
*
10+
* @method string getIotInstanceId()
11+
* @method string getProjectId()
12+
* @method array getDevicess()
13+
* @method string getApiProduct()
14+
* @method string getApiRevision()
15+
*/
16+
class BatchBindDevicesIntoProjectRequest extends \RpcAcsRequest
17+
{
18+
19+
/**
20+
* @var string
21+
*/
22+
protected $method = 'POST';
23+
24+
/**
25+
* Class constructor.
26+
*/
27+
public function __construct()
28+
{
29+
parent::__construct(
30+
'Iot',
31+
'2018-01-20',
32+
'BatchBindDevicesIntoProject',
33+
'iot'
34+
);
35+
}
36+
37+
/**
38+
* @param string $iotInstanceId
39+
*
40+
* @return $this
41+
*/
42+
public function setIotInstanceId($iotInstanceId)
43+
{
44+
$this->requestParameters['IotInstanceId'] = $iotInstanceId;
45+
$this->queryParameters['IotInstanceId'] = $iotInstanceId;
46+
47+
return $this;
48+
}
49+
50+
/**
51+
* @param string $projectId
52+
*
53+
* @return $this
54+
*/
55+
public function setProjectId($projectId)
56+
{
57+
$this->requestParameters['ProjectId'] = $projectId;
58+
$this->queryParameters['ProjectId'] = $projectId;
59+
60+
return $this;
61+
}
62+
63+
/**
64+
* @param array $devices
65+
*
66+
* @return $this
67+
*/
68+
public function setDevicess(array $devices)
69+
{
70+
$this->requestParameters['Devicess'] = $devices;
71+
foreach ($devices as $depth1 => $depth1Value) {
72+
$this->queryParameters['Devices.' . ($depth1 + 1) . '.DeviceName'] = $depth1Value['DeviceName'];
73+
$this->queryParameters['Devices.' . ($depth1 + 1) . '.ProductKey'] = $depth1Value['ProductKey'];
74+
}
75+
76+
return $this;
77+
}
78+
79+
/**
80+
* @param string $apiProduct
81+
*
82+
* @return $this
83+
*/
84+
public function setApiProduct($apiProduct)
85+
{
86+
$this->requestParameters['ApiProduct'] = $apiProduct;
87+
$this->queryParameters['ApiProduct'] = $apiProduct;
88+
89+
return $this;
90+
}
91+
92+
/**
93+
* @param string $apiRevision
94+
*
95+
* @return $this
96+
*/
97+
public function setApiRevision($apiRevision)
98+
{
99+
$this->requestParameters['ApiRevision'] = $apiRevision;
100+
$this->queryParameters['ApiRevision'] = $apiRevision;
101+
102+
return $this;
103+
}
104+
}
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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 BatchBindProductsIntoProject
9+
*
10+
* @method array getProductKeyss()
11+
* @method string getIotInstanceId()
12+
* @method string getProjectId()
13+
* @method string getApiProduct()
14+
* @method string getApiRevision()
15+
*/
16+
class BatchBindProductsIntoProjectRequest extends \RpcAcsRequest
17+
{
18+
19+
/**
20+
* @var string
21+
*/
22+
protected $method = 'POST';
23+
24+
/**
25+
* Class constructor.
26+
*/
27+
public function __construct()
28+
{
29+
parent::__construct(
30+
'Iot',
31+
'2018-01-20',
32+
'BatchBindProductsIntoProject',
33+
'iot'
34+
);
35+
}
36+
37+
/**
38+
* @param array $productKeys
39+
*
40+
* @return $this
41+
*/
42+
public function setProductKeyss(array $productKeys)
43+
{
44+
$this->requestParameters['ProductKeyss'] = $productKeys;
45+
foreach ($productKeys as $i => $iValue) {
46+
$this->queryParameters['ProductKeys.' . ($i + 1)] = $iValue;
47+
}
48+
49+
return $this;
50+
}
51+
52+
/**
53+
* @param string $iotInstanceId
54+
*
55+
* @return $this
56+
*/
57+
public function setIotInstanceId($iotInstanceId)
58+
{
59+
$this->requestParameters['IotInstanceId'] = $iotInstanceId;
60+
$this->queryParameters['IotInstanceId'] = $iotInstanceId;
61+
62+
return $this;
63+
}
64+
65+
/**
66+
* @param string $projectId
67+
*
68+
* @return $this
69+
*/
70+
public function setProjectId($projectId)
71+
{
72+
$this->requestParameters['ProjectId'] = $projectId;
73+
$this->queryParameters['ProjectId'] = $projectId;
74+
75+
return $this;
76+
}
77+
78+
/**
79+
* @param string $apiProduct
80+
*
81+
* @return $this
82+
*/
83+
public function setApiProduct($apiProduct)
84+
{
85+
$this->requestParameters['ApiProduct'] = $apiProduct;
86+
$this->queryParameters['ApiProduct'] = $apiProduct;
87+
88+
return $this;
89+
}
90+
91+
/**
92+
* @param string $apiRevision
93+
*
94+
* @return $this
95+
*/
96+
public function setApiRevision($apiRevision)
97+
{
98+
$this->requestParameters['ApiRevision'] = $apiRevision;
99+
$this->queryParameters['ApiRevision'] = $apiRevision;
100+
101+
return $this;
102+
}
103+
}

aliyun-php-sdk-iot/Iot/Request/V20180120/BatchCheckDeviceNamesRequest.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*
88
* Request of BatchCheckDeviceNames
99
*
10+
* @method string getRealTenantId()
11+
* @method string getRealTripartiteKey()
1012
* @method array getDeviceNameLists()
1113
* @method string getIotInstanceId()
1214
* @method string getProductKey()
@@ -35,6 +37,32 @@ public function __construct()
3537
);
3638
}
3739

40+
/**
41+
* @param string $realTenantId
42+
*
43+
* @return $this
44+
*/
45+
public function setRealTenantId($realTenantId)
46+
{
47+
$this->requestParameters['RealTenantId'] = $realTenantId;
48+
$this->queryParameters['RealTenantId'] = $realTenantId;
49+
50+
return $this;
51+
}
52+
53+
/**
54+
* @param string $realTripartiteKey
55+
*
56+
* @return $this
57+
*/
58+
public function setRealTripartiteKey($realTripartiteKey)
59+
{
60+
$this->requestParameters['RealTripartiteKey'] = $realTripartiteKey;
61+
$this->queryParameters['RealTripartiteKey'] = $realTripartiteKey;
62+
63+
return $this;
64+
}
65+
3866
/**
3967
* @param array $deviceNameList
4068
*

aliyun-php-sdk-iot/Iot/Request/V20180120/BatchDeleteDeviceGroupRelationsRequest.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*
88
* Request of BatchDeleteDeviceGroupRelations
99
*
10+
* @method string getRealTenantId()
11+
* @method string getRealTripartiteKey()
1012
* @method string getIotInstanceId()
1113
* @method string getGroupId()
1214
* @method string getApiProduct()
@@ -34,6 +36,32 @@ public function __construct()
3436
);
3537
}
3638

39+
/**
40+
* @param string $realTenantId
41+
*
42+
* @return $this
43+
*/
44+
public function setRealTenantId($realTenantId)
45+
{
46+
$this->requestParameters['RealTenantId'] = $realTenantId;
47+
$this->queryParameters['RealTenantId'] = $realTenantId;
48+
49+
return $this;
50+
}
51+
52+
/**
53+
* @param string $realTripartiteKey
54+
*
55+
* @return $this
56+
*/
57+
public function setRealTripartiteKey($realTripartiteKey)
58+
{
59+
$this->requestParameters['RealTripartiteKey'] = $realTripartiteKey;
60+
$this->queryParameters['RealTripartiteKey'] = $realTripartiteKey;
61+
62+
return $this;
63+
}
64+
3765
/**
3866
* @param string $iotInstanceId
3967
*

aliyun-php-sdk-iot/Iot/Request/V20180120/BatchQueryDeviceDetailRequest.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*
88
* Request of BatchQueryDeviceDetail
99
*
10+
* @method string getRealTenantId()
11+
* @method string getRealTripartiteKey()
1012
* @method string getIotInstanceId()
1113
* @method string getProductKey()
1214
* @method string getApiProduct()
@@ -34,6 +36,32 @@ public function __construct()
3436
);
3537
}
3638

39+
/**
40+
* @param string $realTenantId
41+
*
42+
* @return $this
43+
*/
44+
public function setRealTenantId($realTenantId)
45+
{
46+
$this->requestParameters['RealTenantId'] = $realTenantId;
47+
$this->queryParameters['RealTenantId'] = $realTenantId;
48+
49+
return $this;
50+
}
51+
52+
/**
53+
* @param string $realTripartiteKey
54+
*
55+
* @return $this
56+
*/
57+
public function setRealTripartiteKey($realTripartiteKey)
58+
{
59+
$this->requestParameters['RealTripartiteKey'] = $realTripartiteKey;
60+
$this->queryParameters['RealTripartiteKey'] = $realTripartiteKey;
61+
62+
return $this;
63+
}
64+
3765
/**
3866
* @param string $iotInstanceId
3967
*

0 commit comments

Comments
 (0)