Skip to content

Commit adfda44

Browse files
committed
由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, BUILD_ID=313, 版本号:1.2.0
发布日志: 1, Add query topology API.
1 parent 8dfda18 commit adfda44

File tree

5 files changed

+314
-1
lines changed

5 files changed

+314
-1
lines changed

aliyun-java-sdk-teslamaxcompute/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2018-02-27 Version: 1.2.0
2+
1, Add query topology API.
3+
14
2018-01-04 Version: 1.1.0
25
1, Remove get entity info API, replaced by get entity instance.
36

aliyun-java-sdk-teslamaxcompute/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-teslamaxcompute</artifactId>
55
<packaging>jar</packaging>
6-
<version>1.1.0</version>
6+
<version>1.2.0</version>
77
<name>aliyun-java-sdk-teslamaxcompute</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.teslamaxcompute.model.v20180104;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class QueryTopologyRequest extends RpcAcsRequest<QueryTopologyResponse> {
28+
29+
public QueryTopologyRequest() {
30+
super("TeslaMaxCompute", "2018-01-04", "QueryTopology");
31+
}
32+
33+
@Override
34+
public Class<QueryTopologyResponse> getResponseClass() {
35+
return QueryTopologyResponse.class;
36+
}
37+
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.teslamaxcompute.model.v20180104;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.teslamaxcompute.transform.v20180104.QueryTopologyResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class QueryTopologyResponse extends AcsResponse {
30+
31+
private Integer code;
32+
33+
private String message;
34+
35+
private String requestId;
36+
37+
private Result result;
38+
39+
public Integer getCode() {
40+
return this.code;
41+
}
42+
43+
public void setCode(Integer code) {
44+
this.code = code;
45+
}
46+
47+
public String getMessage() {
48+
return this.message;
49+
}
50+
51+
public void setMessage(String message) {
52+
this.message = message;
53+
}
54+
55+
public String getRequestId() {
56+
return this.requestId;
57+
}
58+
59+
public void setRequestId(String requestId) {
60+
this.requestId = requestId;
61+
}
62+
63+
public Result getResult() {
64+
return this.result;
65+
}
66+
67+
public void setResult(Result result) {
68+
this.result = result;
69+
}
70+
71+
public static class Result {
72+
73+
private String lastUpdate;
74+
75+
private Regions regions;
76+
77+
public String getLastUpdate() {
78+
return this.lastUpdate;
79+
}
80+
81+
public void setLastUpdate(String lastUpdate) {
82+
this.lastUpdate = lastUpdate;
83+
}
84+
85+
public Regions getRegions() {
86+
return this.regions;
87+
}
88+
89+
public void setRegions(Regions regions) {
90+
this.regions = regions;
91+
}
92+
93+
public static class Regions {
94+
95+
private String region;
96+
97+
private String regionEnName;
98+
99+
private String regionCnName;
100+
101+
private Clusters clusters;
102+
103+
public String getRegion() {
104+
return this.region;
105+
}
106+
107+
public void setRegion(String region) {
108+
this.region = region;
109+
}
110+
111+
public String getRegionEnName() {
112+
return this.regionEnName;
113+
}
114+
115+
public void setRegionEnName(String regionEnName) {
116+
this.regionEnName = regionEnName;
117+
}
118+
119+
public String getRegionCnName() {
120+
return this.regionCnName;
121+
}
122+
123+
public void setRegionCnName(String regionCnName) {
124+
this.regionCnName = regionCnName;
125+
}
126+
127+
public Clusters getClusters() {
128+
return this.clusters;
129+
}
130+
131+
public void setClusters(Clusters clusters) {
132+
this.clusters = clusters;
133+
}
134+
135+
public static class Clusters {
136+
137+
private String cluster;
138+
139+
private String productLine;
140+
141+
private String productClass;
142+
143+
private String netCode;
144+
145+
private String business;
146+
147+
private String machineRoom;
148+
149+
private String netArch;
150+
151+
public String getCluster() {
152+
return this.cluster;
153+
}
154+
155+
public void setCluster(String cluster) {
156+
this.cluster = cluster;
157+
}
158+
159+
public String getProductLine() {
160+
return this.productLine;
161+
}
162+
163+
public void setProductLine(String productLine) {
164+
this.productLine = productLine;
165+
}
166+
167+
public String getProductClass() {
168+
return this.productClass;
169+
}
170+
171+
public void setProductClass(String productClass) {
172+
this.productClass = productClass;
173+
}
174+
175+
public String getNetCode() {
176+
return this.netCode;
177+
}
178+
179+
public void setNetCode(String netCode) {
180+
this.netCode = netCode;
181+
}
182+
183+
public String getBusiness() {
184+
return this.business;
185+
}
186+
187+
public void setBusiness(String business) {
188+
this.business = business;
189+
}
190+
191+
public String getMachineRoom() {
192+
return this.machineRoom;
193+
}
194+
195+
public void setMachineRoom(String machineRoom) {
196+
this.machineRoom = machineRoom;
197+
}
198+
199+
public String getNetArch() {
200+
return this.netArch;
201+
}
202+
203+
public void setNetArch(String netArch) {
204+
this.netArch = netArch;
205+
}
206+
}
207+
}
208+
}
209+
210+
@Override
211+
public QueryTopologyResponse getInstance(UnmarshallerContext context) {
212+
return QueryTopologyResponseUnmarshaller.unmarshall(this, context);
213+
}
214+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.teslamaxcompute.transform.v20180104;
20+
21+
import com.aliyuncs.teslamaxcompute.model.v20180104.QueryTopologyResponse;
22+
import com.aliyuncs.teslamaxcompute.model.v20180104.QueryTopologyResponse.Result;
23+
import com.aliyuncs.teslamaxcompute.model.v20180104.QueryTopologyResponse.Result.Regions;
24+
import com.aliyuncs.teslamaxcompute.model.v20180104.QueryTopologyResponse.Result.Regions.Clusters;
25+
import com.aliyuncs.transform.UnmarshallerContext;
26+
27+
28+
public class QueryTopologyResponseUnmarshaller {
29+
30+
public static QueryTopologyResponse unmarshall(QueryTopologyResponse queryTopologyResponse, UnmarshallerContext context) {
31+
32+
queryTopologyResponse.setRequestId(context.stringValue("QueryTopologyResponse.RequestId"));
33+
queryTopologyResponse.setCode(context.integerValue("QueryTopologyResponse.Code"));
34+
queryTopologyResponse.setMessage(context.stringValue("QueryTopologyResponse.Message"));
35+
36+
Result result = new Result();
37+
result.setLastUpdate(context.stringValue("QueryTopologyResponse.Result.LastUpdate"));
38+
39+
Regions regions = new Regions();
40+
regions.setRegion(context.stringValue("QueryTopologyResponse.Result.Regions.Region"));
41+
regions.setRegionEnName(context.stringValue("QueryTopologyResponse.Result.Regions.RegionEnName"));
42+
regions.setRegionCnName(context.stringValue("QueryTopologyResponse.Result.Regions.RegionCnName"));
43+
44+
Clusters clusters = new Clusters();
45+
clusters.setCluster(context.stringValue("QueryTopologyResponse.Result.Regions.Clusters.Cluster"));
46+
clusters.setProductLine(context.stringValue("QueryTopologyResponse.Result.Regions.Clusters.ProductLine"));
47+
clusters.setProductClass(context.stringValue("QueryTopologyResponse.Result.Regions.Clusters.ProductClass"));
48+
clusters.setNetCode(context.stringValue("QueryTopologyResponse.Result.Regions.Clusters.NetCode"));
49+
clusters.setBusiness(context.stringValue("QueryTopologyResponse.Result.Regions.Clusters.Business"));
50+
clusters.setMachineRoom(context.stringValue("QueryTopologyResponse.Result.Regions.Clusters.MachineRoom"));
51+
clusters.setNetArch(context.stringValue("QueryTopologyResponse.Result.Regions.Clusters.NetArch"));
52+
regions.setClusters(clusters);
53+
result.setRegions(regions);
54+
queryTopologyResponse.setResult(result);
55+
56+
return queryTopologyResponse;
57+
}
58+
}

0 commit comments

Comments
 (0)