Skip to content

Commit d67ffb3

Browse files
committed
Add Unbind Open API.
1 parent 06e37fa commit d67ffb3

File tree

5 files changed

+72
-19
lines changed

5 files changed

+72
-19
lines changed

appstream-center-20210901/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-03-21 Version: 1.0.4
2+
- Add Unbind Open API.
3+
14
2023-03-10 Version: 1.0.3
25
- Add Unbind Open API.
36

appstream-center-20210901/error.log

Lines changed: 0 additions & 13 deletions
This file was deleted.

appstream-center-20210901/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>alibabacloud-appstream_center20210901</artifactId>
6-
<version>1.0.3</version>
6+
<version>1.0.4</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-appstream_center20210901</name>
99
<description>Alibaba Cloud appstream-center (20210901) Async SDK for Java
@@ -41,7 +41,7 @@
4141
<java.version>1.8</java.version>
4242
<maven.compiler.source>8</maven.compiler.source>
4343
<maven.compiler.target>8</maven.compiler.target>
44-
<service.version>0.1.9-beta</service.version>
44+
<service.version>0.1.12-beta</service.version>
4545
</properties>
4646
<dependencies>
4747
<dependency>

appstream-center-20210901/src/main/java/com/aliyun/sdk/service/appstream_center20210901/models/CreateAppInstanceGroupRequest.java

Lines changed: 65 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public class CreateAppInstanceGroupRequest extends Request {
5151

5252
@Body
5353
@NameInMap("NodePool")
54-
@Validation(required = true)
5554
private NodePool nodePool;
5655

5756
@Body
@@ -77,6 +76,10 @@ public class CreateAppInstanceGroupRequest extends Request {
7776
@NameInMap("PromotionId")
7877
private String promotionId;
7978

79+
@Body
80+
@NameInMap("RuntimePolicy")
81+
private RuntimePolicy runtimePolicy;
82+
8083
@Body
8184
@NameInMap("SessionTimeout")
8285
@Validation(required = true, maximum = 300)
@@ -106,6 +109,7 @@ private CreateAppInstanceGroupRequest(Builder builder) {
106109
this.preOpenAppId = builder.preOpenAppId;
107110
this.productType = builder.productType;
108111
this.promotionId = builder.promotionId;
112+
this.runtimePolicy = builder.runtimePolicy;
109113
this.sessionTimeout = builder.sessionTimeout;
110114
this.userInfo = builder.userInfo;
111115
this.users = builder.users;
@@ -222,6 +226,13 @@ public String getPromotionId() {
222226
return this.promotionId;
223227
}
224228

229+
/**
230+
* @return runtimePolicy
231+
*/
232+
public RuntimePolicy getRuntimePolicy() {
233+
return this.runtimePolicy;
234+
}
235+
225236
/**
226237
* @return sessionTimeout
227238
*/
@@ -258,6 +269,7 @@ public static final class Builder extends Request.Builder<CreateAppInstanceGroup
258269
private String preOpenAppId;
259270
private String productType;
260271
private String promotionId;
272+
private RuntimePolicy runtimePolicy;
261273
private Integer sessionTimeout;
262274
private UserInfo userInfo;
263275
private java.util.List < String > users;
@@ -282,6 +294,7 @@ private Builder(CreateAppInstanceGroupRequest request) {
282294
this.preOpenAppId = request.preOpenAppId;
283295
this.productType = request.productType;
284296
this.promotionId = request.promotionId;
297+
this.runtimePolicy = request.runtimePolicy;
285298
this.sessionTimeout = request.sessionTimeout;
286299
this.userInfo = request.userInfo;
287300
this.users = request.users;
@@ -415,6 +428,16 @@ public Builder promotionId(String promotionId) {
415428
return this;
416429
}
417430

431+
/**
432+
* RuntimePolicy.
433+
*/
434+
public Builder runtimePolicy(RuntimePolicy runtimePolicy) {
435+
String runtimePolicyShrink = shrink(runtimePolicy, "RuntimePolicy", "json");
436+
this.putBodyParameter("RuntimePolicy", runtimePolicyShrink);
437+
this.runtimePolicy = runtimePolicy;
438+
return this;
439+
}
440+
418441
/**
419442
* SessionTimeout.
420443
*/
@@ -739,15 +762,12 @@ public static class NodePool extends TeaModel {
739762
private Integer maxScalingAmount;
740763

741764
@NameInMap("NodeAmount")
742-
@Validation(required = true)
743765
private Integer nodeAmount;
744766

745767
@NameInMap("NodeCapacity")
746-
@Validation(required = true)
747768
private Integer nodeCapacity;
748769

749770
@NameInMap("NodeInstanceType")
750-
@Validation(required = true)
751771
private String nodeInstanceType;
752772

753773
@NameInMap("RecurrenceSchedules")
@@ -997,6 +1017,47 @@ public NodePool build() {
9971017

9981018
}
9991019

1020+
}
1021+
public static class RuntimePolicy extends TeaModel {
1022+
@NameInMap("SessionType")
1023+
private String sessionType;
1024+
1025+
private RuntimePolicy(Builder builder) {
1026+
this.sessionType = builder.sessionType;
1027+
}
1028+
1029+
public static Builder builder() {
1030+
return new Builder();
1031+
}
1032+
1033+
public static RuntimePolicy create() {
1034+
return builder().build();
1035+
}
1036+
1037+
/**
1038+
* @return sessionType
1039+
*/
1040+
public String getSessionType() {
1041+
return this.sessionType;
1042+
}
1043+
1044+
public static final class Builder {
1045+
private String sessionType;
1046+
1047+
/**
1048+
* SessionType.
1049+
*/
1050+
public Builder sessionType(String sessionType) {
1051+
this.sessionType = sessionType;
1052+
return this;
1053+
}
1054+
1055+
public RuntimePolicy build() {
1056+
return new RuntimePolicy(this);
1057+
}
1058+
1059+
}
1060+
10001061
}
10011062
public static class UserInfo extends TeaModel {
10021063
@NameInMap("Type")

appstream-center-20210901/src/main/java/com/aliyun/sdk/service/appstream_center20210901/models/UnbindRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
public class UnbindRequest extends Request {
1515
@Body
1616
@NameInMap("AppInstanceGroupId")
17+
@Validation(required = true)
1718
private String appInstanceGroupId;
1819

1920
@Body
@@ -22,6 +23,7 @@ public class UnbindRequest extends Request {
2223

2324
@Body
2425
@NameInMap("EndUserId")
26+
@Validation(required = true)
2527
private String endUserId;
2628

2729
@Body

0 commit comments

Comments
 (0)