Skip to content

Commit 16c1bb4

Browse files
committed
Add status operation api.
1 parent f6d1d02 commit 16c1bb4

13 files changed

+480
-1
lines changed

aliyun-java-sdk-computenest/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-06-18 Version: 1.1.7
2+
- Add status operation api.
3+
14
2024-04-23 Version: 1.1.6
25
- Generated 2021-06-01 for `ComputeNest`.
36

aliyun-java-sdk-computenest/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-computenest</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.1.6</version>
7+
<version>1.1.7</version>
88
<name>aliyun-java-sdk-computenest</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-computenest/src/main/java/com/aliyuncs/computenest/model/v20210601/ListServiceInstancesResponse.java

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ public static class ServiceInstance {
121121

122122
private String bizStatus;
123123

124+
private String orderId;
125+
124126
private List<Tag> tags;
125127

126128
private Service service;
@@ -301,6 +303,14 @@ public void setBizStatus(String bizStatus) {
301303
this.bizStatus = bizStatus;
302304
}
303305

306+
public String getOrderId() {
307+
return this.orderId;
308+
}
309+
310+
public void setOrderId(String orderId) {
311+
this.orderId = orderId;
312+
}
313+
304314
public List<Tag> getTags() {
305315
return this.tags;
306316
}
@@ -362,6 +372,8 @@ public static class Service {
362372

363373
private List<ServiceInfo> serviceInfos;
364374

375+
private Commodity commodity;
376+
365377
public String getStatus() {
366378
return this.status;
367379
}
@@ -442,6 +454,14 @@ public void setServiceInfos(List<ServiceInfo> serviceInfos) {
442454
this.serviceInfos = serviceInfos;
443455
}
444456

457+
public Commodity getCommodity() {
458+
return this.commodity;
459+
}
460+
461+
public void setCommodity(Commodity commodity) {
462+
this.commodity = commodity;
463+
}
464+
445465
public static class ServiceInfo {
446466

447467
private String locale;
@@ -484,6 +504,29 @@ public void setShortDescription(String shortDescription) {
484504
this.shortDescription = shortDescription;
485505
}
486506
}
507+
508+
public static class Commodity {
509+
510+
private String saasBoostMetadata;
511+
512+
private String type;
513+
514+
public String getSaasBoostMetadata() {
515+
return this.saasBoostMetadata;
516+
}
517+
518+
public void setSaasBoostMetadata(String saasBoostMetadata) {
519+
this.saasBoostMetadata = saasBoostMetadata;
520+
}
521+
522+
public String getType() {
523+
return this.type;
524+
}
525+
526+
public void setType(String type) {
527+
this.type = type;
528+
}
529+
}
487530
}
488531
}
489532

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.computenest.model.v20210601;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.computenest.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class RestartServiceInstanceRequest extends RpcAcsRequest<RestartServiceInstanceResponse> {
26+
27+
28+
private String clientToken;
29+
30+
private String serviceInstanceId;
31+
public RestartServiceInstanceRequest() {
32+
super("ComputeNest", "2021-06-01", "RestartServiceInstance", "computenest");
33+
setMethod(MethodType.POST);
34+
try {
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
37+
} catch (Exception e) {}
38+
}
39+
40+
public String getClientToken() {
41+
return this.clientToken;
42+
}
43+
44+
public void setClientToken(String clientToken) {
45+
this.clientToken = clientToken;
46+
if(clientToken != null){
47+
putQueryParameter("ClientToken", clientToken);
48+
}
49+
}
50+
51+
public String getServiceInstanceId() {
52+
return this.serviceInstanceId;
53+
}
54+
55+
public void setServiceInstanceId(String serviceInstanceId) {
56+
this.serviceInstanceId = serviceInstanceId;
57+
if(serviceInstanceId != null){
58+
putQueryParameter("ServiceInstanceId", serviceInstanceId);
59+
}
60+
}
61+
62+
@Override
63+
public Class<RestartServiceInstanceResponse> getResponseClass() {
64+
return RestartServiceInstanceResponse.class;
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.computenest.model.v20210601;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.computenest.transform.v20210601.RestartServiceInstanceResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class RestartServiceInstanceResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
public String getRequestId() {
30+
return this.requestId;
31+
}
32+
33+
public void setRequestId(String requestId) {
34+
this.requestId = requestId;
35+
}
36+
37+
@Override
38+
public RestartServiceInstanceResponse getInstance(UnmarshallerContext context) {
39+
return RestartServiceInstanceResponseUnmarshaller.unmarshall(this, context);
40+
}
41+
42+
@Override
43+
public boolean checkShowJsonItemName() {
44+
return false;
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.computenest.model.v20210601;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.computenest.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class StartServiceInstanceRequest extends RpcAcsRequest<StartServiceInstanceResponse> {
26+
27+
28+
private String clientToken;
29+
30+
private String serviceInstanceId;
31+
public StartServiceInstanceRequest() {
32+
super("ComputeNest", "2021-06-01", "StartServiceInstance", "computenest");
33+
setMethod(MethodType.POST);
34+
try {
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
37+
} catch (Exception e) {}
38+
}
39+
40+
public String getClientToken() {
41+
return this.clientToken;
42+
}
43+
44+
public void setClientToken(String clientToken) {
45+
this.clientToken = clientToken;
46+
if(clientToken != null){
47+
putQueryParameter("ClientToken", clientToken);
48+
}
49+
}
50+
51+
public String getServiceInstanceId() {
52+
return this.serviceInstanceId;
53+
}
54+
55+
public void setServiceInstanceId(String serviceInstanceId) {
56+
this.serviceInstanceId = serviceInstanceId;
57+
if(serviceInstanceId != null){
58+
putQueryParameter("ServiceInstanceId", serviceInstanceId);
59+
}
60+
}
61+
62+
@Override
63+
public Class<StartServiceInstanceResponse> getResponseClass() {
64+
return StartServiceInstanceResponse.class;
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.computenest.model.v20210601;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.computenest.transform.v20210601.StartServiceInstanceResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class StartServiceInstanceResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
public String getRequestId() {
30+
return this.requestId;
31+
}
32+
33+
public void setRequestId(String requestId) {
34+
this.requestId = requestId;
35+
}
36+
37+
@Override
38+
public StartServiceInstanceResponse getInstance(UnmarshallerContext context) {
39+
return StartServiceInstanceResponseUnmarshaller.unmarshall(this, context);
40+
}
41+
42+
@Override
43+
public boolean checkShowJsonItemName() {
44+
return false;
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.computenest.model.v20210601;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.computenest.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class StopServiceInstanceRequest extends RpcAcsRequest<StopServiceInstanceResponse> {
26+
27+
28+
private String clientToken;
29+
30+
private String serviceInstanceId;
31+
public StopServiceInstanceRequest() {
32+
super("ComputeNest", "2021-06-01", "StopServiceInstance", "computenest");
33+
setMethod(MethodType.POST);
34+
try {
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
37+
} catch (Exception e) {}
38+
}
39+
40+
public String getClientToken() {
41+
return this.clientToken;
42+
}
43+
44+
public void setClientToken(String clientToken) {
45+
this.clientToken = clientToken;
46+
if(clientToken != null){
47+
putQueryParameter("ClientToken", clientToken);
48+
}
49+
}
50+
51+
public String getServiceInstanceId() {
52+
return this.serviceInstanceId;
53+
}
54+
55+
public void setServiceInstanceId(String serviceInstanceId) {
56+
this.serviceInstanceId = serviceInstanceId;
57+
if(serviceInstanceId != null){
58+
putQueryParameter("ServiceInstanceId", serviceInstanceId);
59+
}
60+
}
61+
62+
@Override
63+
public Class<StopServiceInstanceResponse> getResponseClass() {
64+
return StopServiceInstanceResponse.class;
65+
}
66+
67+
}

0 commit comments

Comments
 (0)