Skip to content

Commit c0595cb

Browse files
committed
Support groupId operations.
1 parent 0a8cc32 commit c0595cb

20 files changed

+967
-3
lines changed

aliyun-java-sdk-onsmqtt/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-04-23 Version: 1.0.2
2+
- Support groupId operations.
3+
14
2020-03-05 Version: 1.0.1
25
- Update send message noPresistFlag param.
36

aliyun-java-sdk-onsmqtt/pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-onsmqtt</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.1</version>
7+
<version>1.0.2</version>
88
<name>aliyun-java-sdk-onsmqtt</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
@@ -27,7 +27,7 @@ http://www.aliyun.com</description>
2727
<groupId>com.aliyun</groupId>
2828
<artifactId>aliyun-java-sdk-core</artifactId>
2929
<optional>true</optional>
30-
<version>[4.3.2,5.0.0)</version>
30+
<version>[4.4.9,5.0.0)</version>
3131
</dependency>
3232
<dependency>
3333
<groupId>com.google.code.gson</groupId>
@@ -84,9 +84,10 @@ http://www.aliyun.com</description>
8484
<plugin>
8585
<groupId>org.apache.maven.plugins</groupId>
8686
<artifactId>maven-javadoc-plugin</artifactId>
87-
<version>2.8</version>
87+
<version>3.1.0</version>
8888
<configuration>
8989
<encoding>UTF-8</encoding>
90+
<doclint>none</doclint>
9091
</configuration>
9192
</plugin>
9293
<plugin>
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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.onsmqtt.model.v20200420;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class ApplyTokenRequest extends RpcAcsRequest<ApplyTokenResponse> {
25+
26+
27+
private Long expireTime;
28+
29+
private String resources;
30+
31+
private String instanceId;
32+
33+
private String actions;
34+
public ApplyTokenRequest() {
35+
super("OnsMqtt", "2020-04-20", "ApplyToken");
36+
setMethod(MethodType.POST);
37+
}
38+
39+
public Long getExpireTime() {
40+
return this.expireTime;
41+
}
42+
43+
public void setExpireTime(Long expireTime) {
44+
this.expireTime = expireTime;
45+
if(expireTime != null){
46+
putQueryParameter("ExpireTime", expireTime.toString());
47+
}
48+
}
49+
50+
public String getResources() {
51+
return this.resources;
52+
}
53+
54+
public void setResources(String resources) {
55+
this.resources = resources;
56+
if(resources != null){
57+
putQueryParameter("Resources", resources);
58+
}
59+
}
60+
61+
public String getInstanceId() {
62+
return this.instanceId;
63+
}
64+
65+
public void setInstanceId(String instanceId) {
66+
this.instanceId = instanceId;
67+
if(instanceId != null){
68+
putQueryParameter("InstanceId", instanceId);
69+
}
70+
}
71+
72+
public String getActions() {
73+
return this.actions;
74+
}
75+
76+
public void setActions(String actions) {
77+
this.actions = actions;
78+
if(actions != null){
79+
putQueryParameter("Actions", actions);
80+
}
81+
}
82+
83+
@Override
84+
public Class<ApplyTokenResponse> getResponseClass() {
85+
return ApplyTokenResponse.class;
86+
}
87+
88+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.onsmqtt.model.v20200420;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.onsmqtt.transform.v20200420.ApplyTokenResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class ApplyTokenResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String token;
30+
31+
public String getRequestId() {
32+
return this.requestId;
33+
}
34+
35+
public void setRequestId(String requestId) {
36+
this.requestId = requestId;
37+
}
38+
39+
public String getToken() {
40+
return this.token;
41+
}
42+
43+
public void setToken(String token) {
44+
this.token = token;
45+
}
46+
47+
@Override
48+
public ApplyTokenResponse getInstance(UnmarshallerContext context) {
49+
return ApplyTokenResponseUnmarshaller.unmarshall(this, context);
50+
}
51+
52+
@Override
53+
public boolean checkShowJsonItemName() {
54+
return false;
55+
}
56+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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.onsmqtt.model.v20200420;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class CreateGroupIdRequest extends RpcAcsRequest<CreateGroupIdResponse> {
25+
26+
27+
private String groupId;
28+
29+
private String instanceId;
30+
public CreateGroupIdRequest() {
31+
super("OnsMqtt", "2020-04-20", "CreateGroupId");
32+
setMethod(MethodType.POST);
33+
}
34+
35+
public String getGroupId() {
36+
return this.groupId;
37+
}
38+
39+
public void setGroupId(String groupId) {
40+
this.groupId = groupId;
41+
if(groupId != null){
42+
putQueryParameter("GroupId", groupId);
43+
}
44+
}
45+
46+
public String getInstanceId() {
47+
return this.instanceId;
48+
}
49+
50+
public void setInstanceId(String instanceId) {
51+
this.instanceId = instanceId;
52+
if(instanceId != null){
53+
putQueryParameter("InstanceId", instanceId);
54+
}
55+
}
56+
57+
@Override
58+
public Class<CreateGroupIdResponse> getResponseClass() {
59+
return CreateGroupIdResponse.class;
60+
}
61+
62+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.onsmqtt.model.v20200420;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.onsmqtt.transform.v20200420.CreateGroupIdResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateGroupIdResponse extends AcsResponse {
26+
27+
private String helpUrl;
28+
29+
private String requestId;
30+
31+
public String getHelpUrl() {
32+
return this.helpUrl;
33+
}
34+
35+
public void setHelpUrl(String helpUrl) {
36+
this.helpUrl = helpUrl;
37+
}
38+
39+
public String getRequestId() {
40+
return this.requestId;
41+
}
42+
43+
public void setRequestId(String requestId) {
44+
this.requestId = requestId;
45+
}
46+
47+
@Override
48+
public CreateGroupIdResponse getInstance(UnmarshallerContext context) {
49+
return CreateGroupIdResponseUnmarshaller.unmarshall(this, context);
50+
}
51+
52+
@Override
53+
public boolean checkShowJsonItemName() {
54+
return false;
55+
}
56+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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.onsmqtt.model.v20200420;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class DeleteGroupIdRequest extends RpcAcsRequest<DeleteGroupIdResponse> {
25+
26+
27+
private String groupId;
28+
29+
private String instanceId;
30+
public DeleteGroupIdRequest() {
31+
super("OnsMqtt", "2020-04-20", "DeleteGroupId");
32+
setMethod(MethodType.POST);
33+
}
34+
35+
public String getGroupId() {
36+
return this.groupId;
37+
}
38+
39+
public void setGroupId(String groupId) {
40+
this.groupId = groupId;
41+
if(groupId != null){
42+
putQueryParameter("GroupId", groupId);
43+
}
44+
}
45+
46+
public String getInstanceId() {
47+
return this.instanceId;
48+
}
49+
50+
public void setInstanceId(String instanceId) {
51+
this.instanceId = instanceId;
52+
if(instanceId != null){
53+
putQueryParameter("InstanceId", instanceId);
54+
}
55+
}
56+
57+
@Override
58+
public Class<DeleteGroupIdResponse> getResponseClass() {
59+
return DeleteGroupIdResponse.class;
60+
}
61+
62+
}

0 commit comments

Comments
 (0)