Skip to content

Commit 58dd6fa

Browse files
committed
Update API GetConnectionTicket: add request parameters AppPolicyId.
1 parent f6ef848 commit 58dd6fa

File tree

4 files changed

+31
-57
lines changed

4 files changed

+31
-57
lines changed

appstream-center-20210903/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-06-23 Version: 2.0.2
2+
- Update API GetConnectionTicket: add request parameters AppPolicyId.
3+
4+
15
2025-04-07 Version: 2.0.1
26
- Update API GetConnectionTicket: add request parameters AccessType.
37

appstream-center-20210903/pom.xml

Lines changed: 3 additions & 3 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>appstream_center20210903</artifactId>
6-
<version>2.0.1</version>
6+
<version>2.0.2</version>
77
<packaging>jar</packaging>
88
<name>appstream_center20210903</name>
99
<description>Alibaba Cloud appstream-center (20210903) SDK for Java
@@ -46,7 +46,7 @@
4646
<dependency>
4747
<groupId>com.aliyun</groupId>
4848
<artifactId>tea-openapi</artifactId>
49-
<version>0.3.7</version>
49+
<version>0.3.8</version>
5050
</dependency>
5151
<dependency>
5252
<groupId>com.aliyun</groupId>
@@ -56,7 +56,7 @@
5656
<dependency>
5757
<groupId>com.aliyun</groupId>
5858
<artifactId>endpoint-util</artifactId>
59-
<version>0.0.7</version>
59+
<version>0.0.8</version>
6060
</dependency>
6161
<dependency>
6262
<groupId>com.aliyun</groupId>

appstream-center-20210903/src/main/java/com/aliyun/appstream_center20210903/Client.java

Lines changed: 13 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ public GetConnectionTicketResponse getConnectionTicketWithOptions(GetConnectionT
5454
body.put("AppInstanceId", request.appInstanceId);
5555
}
5656

57+
if (!com.aliyun.teautil.Common.isUnset(request.appPolicyId)) {
58+
body.put("AppPolicyId", request.appPolicyId);
59+
}
60+
5761
if (!com.aliyun.teautil.Common.isUnset(request.appVersion)) {
5862
body.put("AppVersion", request.appVersion);
5963
}
@@ -148,12 +152,7 @@ public GetConnectionTicketResponse getConnectionTicketWithOptions(GetConnectionT
148152
new TeaPair("reqBodyType", "formData"),
149153
new TeaPair("bodyType", "json")
150154
));
151-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
152-
return TeaModel.toModel(this.callApi(params, req, runtime), new GetConnectionTicketResponse());
153-
} else {
154-
return TeaModel.toModel(this.execute(params, req, runtime), new GetConnectionTicketResponse());
155-
}
156-
155+
return TeaModel.toModel(this.callApi(params, req, runtime), new GetConnectionTicketResponse());
157156
}
158157

159158
/**
@@ -253,12 +252,7 @@ public ListPublishedAppInfoResponse listPublishedAppInfoWithOptions(ListPublishe
253252
new TeaPair("reqBodyType", "formData"),
254253
new TeaPair("bodyType", "json")
255254
));
256-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
257-
return TeaModel.toModel(this.callApi(params, req, runtime), new ListPublishedAppInfoResponse());
258-
} else {
259-
return TeaModel.toModel(this.execute(params, req, runtime), new ListPublishedAppInfoResponse());
260-
}
261-
255+
return TeaModel.toModel(this.callApi(params, req, runtime), new ListPublishedAppInfoResponse());
262256
}
263257

264258
/**
@@ -346,12 +340,7 @@ public ListRunningAppsResponse listRunningAppsWithOptions(ListRunningAppsRequest
346340
new TeaPair("reqBodyType", "formData"),
347341
new TeaPair("bodyType", "json")
348342
));
349-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
350-
return TeaModel.toModel(this.callApi(params, req, runtime), new ListRunningAppsResponse());
351-
} else {
352-
return TeaModel.toModel(this.execute(params, req, runtime), new ListRunningAppsResponse());
353-
}
354-
343+
return TeaModel.toModel(this.callApi(params, req, runtime), new ListRunningAppsResponse());
355344
}
356345

357346
/**
@@ -443,12 +432,7 @@ public ResetAppResourcesResponse resetAppResourcesWithOptions(ResetAppResourcesR
443432
new TeaPair("reqBodyType", "formData"),
444433
new TeaPair("bodyType", "json")
445434
));
446-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
447-
return TeaModel.toModel(this.callApi(params, req, runtime), new ResetAppResourcesResponse());
448-
} else {
449-
return TeaModel.toModel(this.execute(params, req, runtime), new ResetAppResourcesResponse());
450-
}
451-
435+
return TeaModel.toModel(this.callApi(params, req, runtime), new ResetAppResourcesResponse());
452436
}
453437

454438
/**
@@ -540,12 +524,7 @@ public RestartAppResourcesResponse restartAppResourcesWithOptions(RestartAppReso
540524
new TeaPair("reqBodyType", "formData"),
541525
new TeaPair("bodyType", "json")
542526
));
543-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
544-
return TeaModel.toModel(this.callApi(params, req, runtime), new RestartAppResourcesResponse());
545-
} else {
546-
return TeaModel.toModel(this.execute(params, req, runtime), new RestartAppResourcesResponse());
547-
}
548-
527+
return TeaModel.toModel(this.callApi(params, req, runtime), new RestartAppResourcesResponse());
549528
}
550529

551530
/**
@@ -637,12 +616,7 @@ public StartAppResourcesResponse startAppResourcesWithOptions(StartAppResourcesR
637616
new TeaPair("reqBodyType", "formData"),
638617
new TeaPair("bodyType", "json")
639618
));
640-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
641-
return TeaModel.toModel(this.callApi(params, req, runtime), new StartAppResourcesResponse());
642-
} else {
643-
return TeaModel.toModel(this.execute(params, req, runtime), new StartAppResourcesResponse());
644-
}
645-
619+
return TeaModel.toModel(this.callApi(params, req, runtime), new StartAppResourcesResponse());
646620
}
647621

648622
/**
@@ -766,12 +740,7 @@ public StopAppResponse stopAppWithOptions(StopAppRequest request, com.aliyun.tea
766740
new TeaPair("reqBodyType", "formData"),
767741
new TeaPair("bodyType", "json")
768742
));
769-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
770-
return TeaModel.toModel(this.callApi(params, req, runtime), new StopAppResponse());
771-
} else {
772-
return TeaModel.toModel(this.execute(params, req, runtime), new StopAppResponse());
773-
}
774-
743+
return TeaModel.toModel(this.callApi(params, req, runtime), new StopAppResponse());
775744
}
776745

777746
/**
@@ -863,12 +832,7 @@ public StopAppResourcesResponse stopAppResourcesWithOptions(StopAppResourcesRequ
863832
new TeaPair("reqBodyType", "formData"),
864833
new TeaPair("bodyType", "json")
865834
));
866-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
867-
return TeaModel.toModel(this.callApi(params, req, runtime), new StopAppResourcesResponse());
868-
} else {
869-
return TeaModel.toModel(this.execute(params, req, runtime), new StopAppResourcesResponse());
870-
}
871-
835+
return TeaModel.toModel(this.callApi(params, req, runtime), new StopAppResourcesResponse());
872836
}
873837

874838
/**
@@ -960,12 +924,7 @@ public UnbindResponse unbindWithOptions(UnbindRequest request, com.aliyun.teauti
960924
new TeaPair("reqBodyType", "formData"),
961925
new TeaPair("bodyType", "json")
962926
));
963-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
964-
return TeaModel.toModel(this.callApi(params, req, runtime), new UnbindResponse());
965-
} else {
966-
return TeaModel.toModel(this.execute(params, req, runtime), new UnbindResponse());
967-
}
968-
927+
return TeaModel.toModel(this.callApi(params, req, runtime), new UnbindResponse());
969928
}
970929

971930
/**

appstream-center-20210903/src/main/java/com/aliyun/appstream_center20210903/models/GetConnectionTicketRequest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public class GetConnectionTicketRequest extends TeaModel {
3131
@NameInMap("AppInstanceId")
3232
public String appInstanceId;
3333

34+
@NameInMap("AppPolicyId")
35+
public String appPolicyId;
36+
3437
/**
3538
* <strong>example:</strong>
3639
* <p>1.0.0.1</p>
@@ -190,6 +193,14 @@ public String getAppInstanceId() {
190193
return this.appInstanceId;
191194
}
192195

196+
public GetConnectionTicketRequest setAppPolicyId(String appPolicyId) {
197+
this.appPolicyId = appPolicyId;
198+
return this;
199+
}
200+
public String getAppPolicyId() {
201+
return this.appPolicyId;
202+
}
203+
193204
public GetConnectionTicketRequest setAppVersion(String appVersion) {
194205
this.appVersion = appVersion;
195206
return this;

0 commit comments

Comments
 (0)