Skip to content

Commit 061a307

Browse files
committed
Iot_20180120 old version sdk.
1 parent 1d31a87 commit 061a307

File tree

35 files changed

+2904
-2
lines changed

35 files changed

+2904
-2
lines changed

aliyun-java-sdk-iot/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2022-09-06 Version: 7.43.0
2+
- Iot_20180120 old version sdk.
3+
14
2022-08-25 Version: 7.42.0
25
- Iot_20180120 Old sdk.
36

aliyun-java-sdk-iot/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-iot</artifactId>
66
<packaging>jar</packaging>
7-
<version>7.42.0</version>
7+
<version>7.43.0</version>
88
<name>aliyun-java-sdk-iot</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.iot.model.v20180120;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.iot.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class AddShareTaskDeviceRequest extends RpcAcsRequest<AddShareTaskDeviceResponse> {
27+
28+
29+
private String iotInstanceId;
30+
31+
private List<String> iotIdLists;
32+
33+
private String shareTaskId;
34+
35+
private String productKey;
36+
public AddShareTaskDeviceRequest() {
37+
super("Iot", "2018-01-20", "AddShareTaskDevice");
38+
setMethod(MethodType.POST);
39+
try {
40+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
41+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
42+
} catch (Exception e) {}
43+
}
44+
45+
public String getIotInstanceId() {
46+
return this.iotInstanceId;
47+
}
48+
49+
public void setIotInstanceId(String iotInstanceId) {
50+
this.iotInstanceId = iotInstanceId;
51+
if(iotInstanceId != null){
52+
putBodyParameter("IotInstanceId", iotInstanceId);
53+
}
54+
}
55+
56+
public List<String> getIotIdLists() {
57+
return this.iotIdLists;
58+
}
59+
60+
public void setIotIdLists(List<String> iotIdLists) {
61+
this.iotIdLists = iotIdLists;
62+
if (iotIdLists != null) {
63+
for (int i = 0; i < iotIdLists.size(); i++) {
64+
putBodyParameter("IotIdList." + (i + 1) , iotIdLists.get(i));
65+
}
66+
}
67+
}
68+
69+
public String getShareTaskId() {
70+
return this.shareTaskId;
71+
}
72+
73+
public void setShareTaskId(String shareTaskId) {
74+
this.shareTaskId = shareTaskId;
75+
if(shareTaskId != null){
76+
putBodyParameter("ShareTaskId", shareTaskId);
77+
}
78+
}
79+
80+
public String getProductKey() {
81+
return this.productKey;
82+
}
83+
84+
public void setProductKey(String productKey) {
85+
this.productKey = productKey;
86+
if(productKey != null){
87+
putBodyParameter("ProductKey", productKey);
88+
}
89+
}
90+
91+
@Override
92+
public Class<AddShareTaskDeviceResponse> getResponseClass() {
93+
return AddShareTaskDeviceResponse.class;
94+
}
95+
96+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.iot.model.v20180120;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.iot.transform.v20180120.AddShareTaskDeviceResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class AddShareTaskDeviceResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private Boolean success;
30+
31+
private String code;
32+
33+
private String errorMessage;
34+
35+
private Data data;
36+
37+
public String getRequestId() {
38+
return this.requestId;
39+
}
40+
41+
public void setRequestId(String requestId) {
42+
this.requestId = requestId;
43+
}
44+
45+
public Boolean getSuccess() {
46+
return this.success;
47+
}
48+
49+
public void setSuccess(Boolean success) {
50+
this.success = success;
51+
}
52+
53+
public String getCode() {
54+
return this.code;
55+
}
56+
57+
public void setCode(String code) {
58+
this.code = code;
59+
}
60+
61+
public String getErrorMessage() {
62+
return this.errorMessage;
63+
}
64+
65+
public void setErrorMessage(String errorMessage) {
66+
this.errorMessage = errorMessage;
67+
}
68+
69+
public Data getData() {
70+
return this.data;
71+
}
72+
73+
public void setData(Data data) {
74+
this.data = data;
75+
}
76+
77+
public static class Data {
78+
79+
private Integer progress;
80+
81+
private String progressId;
82+
83+
public Integer getProgress() {
84+
return this.progress;
85+
}
86+
87+
public void setProgress(Integer progress) {
88+
this.progress = progress;
89+
}
90+
91+
public String getProgressId() {
92+
return this.progressId;
93+
}
94+
95+
public void setProgressId(String progressId) {
96+
this.progressId = progressId;
97+
}
98+
}
99+
100+
@Override
101+
public AddShareTaskDeviceResponse getInstance(UnmarshallerContext context) {
102+
return AddShareTaskDeviceResponseUnmarshaller.unmarshall(this, context);
103+
}
104+
}

aliyun-java-sdk-iot/src/main/java/com/aliyuncs/iot/model/v20180120/BindLicenseDeviceRequest.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
public class BindLicenseDeviceRequest extends RpcAcsRequest<BindLicenseDeviceResponse> {
2727

2828

29+
private List<String> deviceNameLists;
30+
2931
private String iotInstanceId;
3032

3133
private List<String> iotIdLists;
@@ -42,6 +44,19 @@ public BindLicenseDeviceRequest() {
4244
} catch (Exception e) {}
4345
}
4446

47+
public List<String> getDeviceNameLists() {
48+
return this.deviceNameLists;
49+
}
50+
51+
public void setDeviceNameLists(List<String> deviceNameLists) {
52+
this.deviceNameLists = deviceNameLists;
53+
if (deviceNameLists != null) {
54+
for (int i = 0; i < deviceNameLists.size(); i++) {
55+
putBodyParameter("DeviceNameList." + (i + 1) , deviceNameLists.get(i));
56+
}
57+
}
58+
}
59+
4560
public String getIotInstanceId() {
4661
return this.iotInstanceId;
4762
}
@@ -61,7 +76,7 @@ public void setIotIdLists(List<String> iotIdLists) {
6176
this.iotIdLists = iotIdLists;
6277
if (iotIdLists != null) {
6378
for (int i = 0; i < iotIdLists.size(); i++) {
64-
putQueryParameter("IotIdList." + (i + 1) , iotIdLists.get(i));
79+
putBodyParameter("IotIdList." + (i + 1) , iotIdLists.get(i));
6580
}
6681
}
6782
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.iot.model.v20180120;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.iot.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class DeleteShareTaskDeviceRequest extends RpcAcsRequest<DeleteShareTaskDeviceResponse> {
27+
28+
29+
private String iotInstanceId;
30+
31+
private List<String> iotIdLists;
32+
33+
private String shareTaskId;
34+
public DeleteShareTaskDeviceRequest() {
35+
super("Iot", "2018-01-20", "DeleteShareTaskDevice");
36+
setMethod(MethodType.POST);
37+
try {
38+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
39+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
40+
} catch (Exception e) {}
41+
}
42+
43+
public String getIotInstanceId() {
44+
return this.iotInstanceId;
45+
}
46+
47+
public void setIotInstanceId(String iotInstanceId) {
48+
this.iotInstanceId = iotInstanceId;
49+
if(iotInstanceId != null){
50+
putBodyParameter("IotInstanceId", iotInstanceId);
51+
}
52+
}
53+
54+
public List<String> getIotIdLists() {
55+
return this.iotIdLists;
56+
}
57+
58+
public void setIotIdLists(List<String> iotIdLists) {
59+
this.iotIdLists = iotIdLists;
60+
if (iotIdLists != null) {
61+
for (int i = 0; i < iotIdLists.size(); i++) {
62+
putBodyParameter("IotIdList." + (i + 1) , iotIdLists.get(i));
63+
}
64+
}
65+
}
66+
67+
public String getShareTaskId() {
68+
return this.shareTaskId;
69+
}
70+
71+
public void setShareTaskId(String shareTaskId) {
72+
this.shareTaskId = shareTaskId;
73+
if(shareTaskId != null){
74+
putBodyParameter("ShareTaskId", shareTaskId);
75+
}
76+
}
77+
78+
@Override
79+
public Class<DeleteShareTaskDeviceResponse> getResponseClass() {
80+
return DeleteShareTaskDeviceResponse.class;
81+
}
82+
83+
}

0 commit comments

Comments
 (0)