Skip to content

Commit c55dddc

Browse files
committed
Support API GetAppPlayKey.
1 parent eba9c3f commit c55dddc

File tree

9 files changed

+480
-1
lines changed

9 files changed

+480
-1
lines changed

vod-20170321/ChangeLog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-12-05 Version: 3.9.0
2+
- Support API GetAppPlayKey.
3+
- Support API SetAppPlayKey.
4+
5+
16
2025-12-03 Version: 3.8.2
27
- Update API BatchGetMediaInfos: add request parameters ReferenceIds.
38
- Update API BatchGetMediaInfos: add response parameters Body.NonExistReferenceIds.

vod-20170321/pom.xml

Lines changed: 1 addition & 1 deletion
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>vod20170321</artifactId>
6-
<version>3.8.2</version>
6+
<version>3.9.0</version>
77
<packaging>jar</packaging>
88
<name>vod20170321</name>
99
<description>Alibaba Cloud ApsaraVideo for VOD (20170321) SDK for Java

vod-20170321/src/main/java/com/aliyun/vod20170321/Client.java

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7226,6 +7226,62 @@ public GetAppInfosResponse getAppInfos(GetAppInfosRequest request) throws Except
72267226
return this.getAppInfosWithOptions(request, runtime);
72277227
}
72287228

7229+
/**
7230+
* <b>summary</b> :
7231+
* <p>获取应用播放密钥</p>
7232+
*
7233+
* @param request GetAppPlayKeyRequest
7234+
* @param runtime runtime options for this request RuntimeOptions
7235+
* @return GetAppPlayKeyResponse
7236+
*/
7237+
public GetAppPlayKeyResponse getAppPlayKeyWithOptions(GetAppPlayKeyRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
7238+
com.aliyun.teautil.Common.validateModel(request);
7239+
java.util.Map<String, Object> query = new java.util.HashMap<>();
7240+
if (!com.aliyun.teautil.Common.isUnset(request.appId)) {
7241+
query.put("AppId", request.appId);
7242+
}
7243+
7244+
if (!com.aliyun.teautil.Common.isUnset(request.ownerId)) {
7245+
query.put("OwnerId", request.ownerId);
7246+
}
7247+
7248+
if (!com.aliyun.teautil.Common.isUnset(request.resourceOwnerAccount)) {
7249+
query.put("ResourceOwnerAccount", request.resourceOwnerAccount);
7250+
}
7251+
7252+
if (!com.aliyun.teautil.Common.isUnset(request.resourceOwnerId)) {
7253+
query.put("ResourceOwnerId", request.resourceOwnerId);
7254+
}
7255+
7256+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
7257+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
7258+
));
7259+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
7260+
new TeaPair("action", "GetAppPlayKey"),
7261+
new TeaPair("version", "2017-03-21"),
7262+
new TeaPair("protocol", "HTTPS"),
7263+
new TeaPair("pathname", "/"),
7264+
new TeaPair("method", "POST"),
7265+
new TeaPair("authType", "AK"),
7266+
new TeaPair("style", "RPC"),
7267+
new TeaPair("reqBodyType", "formData"),
7268+
new TeaPair("bodyType", "json")
7269+
));
7270+
return TeaModel.toModel(this.callApi(params, req, runtime), new GetAppPlayKeyResponse());
7271+
}
7272+
7273+
/**
7274+
* <b>summary</b> :
7275+
* <p>获取应用播放密钥</p>
7276+
*
7277+
* @param request GetAppPlayKeyRequest
7278+
* @return GetAppPlayKeyResponse
7279+
*/
7280+
public GetAppPlayKeyResponse getAppPlayKey(GetAppPlayKeyRequest request) throws Exception {
7281+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
7282+
return this.getAppPlayKeyWithOptions(request, runtime);
7283+
}
7284+
72297285
/**
72307286
* <b>description</b> :
72317287
* <p>You can query information about up to 20 auxiliary media assets in a request.</p>
@@ -10774,6 +10830,66 @@ public SearchMediaResponse searchMedia(SearchMediaRequest request) throws Except
1077410830
return this.searchMediaWithOptions(request, runtime);
1077510831
}
1077610832

10833+
/**
10834+
* <b>summary</b> :
10835+
* <p>设置应用播放密钥</p>
10836+
*
10837+
* @param request SetAppPlayKeyRequest
10838+
* @param runtime runtime options for this request RuntimeOptions
10839+
* @return SetAppPlayKeyResponse
10840+
*/
10841+
public SetAppPlayKeyResponse setAppPlayKeyWithOptions(SetAppPlayKeyRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
10842+
com.aliyun.teautil.Common.validateModel(request);
10843+
java.util.Map<String, Object> query = new java.util.HashMap<>();
10844+
if (!com.aliyun.teautil.Common.isUnset(request.appId)) {
10845+
query.put("AppId", request.appId);
10846+
}
10847+
10848+
if (!com.aliyun.teautil.Common.isUnset(request.ownerId)) {
10849+
query.put("OwnerId", request.ownerId);
10850+
}
10851+
10852+
if (!com.aliyun.teautil.Common.isUnset(request.playKey)) {
10853+
query.put("PlayKey", request.playKey);
10854+
}
10855+
10856+
if (!com.aliyun.teautil.Common.isUnset(request.resourceOwnerAccount)) {
10857+
query.put("ResourceOwnerAccount", request.resourceOwnerAccount);
10858+
}
10859+
10860+
if (!com.aliyun.teautil.Common.isUnset(request.resourceOwnerId)) {
10861+
query.put("ResourceOwnerId", request.resourceOwnerId);
10862+
}
10863+
10864+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
10865+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
10866+
));
10867+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
10868+
new TeaPair("action", "SetAppPlayKey"),
10869+
new TeaPair("version", "2017-03-21"),
10870+
new TeaPair("protocol", "HTTPS"),
10871+
new TeaPair("pathname", "/"),
10872+
new TeaPair("method", "POST"),
10873+
new TeaPair("authType", "AK"),
10874+
new TeaPair("style", "RPC"),
10875+
new TeaPair("reqBodyType", "formData"),
10876+
new TeaPair("bodyType", "json")
10877+
));
10878+
return TeaModel.toModel(this.callApi(params, req, runtime), new SetAppPlayKeyResponse());
10879+
}
10880+
10881+
/**
10882+
* <b>summary</b> :
10883+
* <p>设置应用播放密钥</p>
10884+
*
10885+
* @param request SetAppPlayKeyRequest
10886+
* @return SetAppPlayKeyResponse
10887+
*/
10888+
public SetAppPlayKeyResponse setAppPlayKey(SetAppPlayKeyRequest request) throws Exception {
10889+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
10890+
return this.setAppPlayKeyWithOptions(request, runtime);
10891+
}
10892+
1077710893
/**
1077810894
* <b>description</b> :
1077910895
* <p>You can play videos in the Checking or Blocked state only from the IP addresses that are added to review security groups.</p>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.vod20170321.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class GetAppPlayKeyRequest extends TeaModel {
7+
/**
8+
* <strong>example:</strong>
9+
* <p>app-1000000</p>
10+
*/
11+
@NameInMap("AppId")
12+
public String appId;
13+
14+
@NameInMap("OwnerId")
15+
public Long ownerId;
16+
17+
@NameInMap("ResourceOwnerAccount")
18+
public String resourceOwnerAccount;
19+
20+
@NameInMap("ResourceOwnerId")
21+
public Long resourceOwnerId;
22+
23+
public static GetAppPlayKeyRequest build(java.util.Map<String, ?> map) throws Exception {
24+
GetAppPlayKeyRequest self = new GetAppPlayKeyRequest();
25+
return TeaModel.build(map, self);
26+
}
27+
28+
public GetAppPlayKeyRequest setAppId(String appId) {
29+
this.appId = appId;
30+
return this;
31+
}
32+
public String getAppId() {
33+
return this.appId;
34+
}
35+
36+
public GetAppPlayKeyRequest setOwnerId(Long ownerId) {
37+
this.ownerId = ownerId;
38+
return this;
39+
}
40+
public Long getOwnerId() {
41+
return this.ownerId;
42+
}
43+
44+
public GetAppPlayKeyRequest setResourceOwnerAccount(String resourceOwnerAccount) {
45+
this.resourceOwnerAccount = resourceOwnerAccount;
46+
return this;
47+
}
48+
public String getResourceOwnerAccount() {
49+
return this.resourceOwnerAccount;
50+
}
51+
52+
public GetAppPlayKeyRequest setResourceOwnerId(Long resourceOwnerId) {
53+
this.resourceOwnerId = resourceOwnerId;
54+
return this;
55+
}
56+
public Long getResourceOwnerId() {
57+
return this.resourceOwnerId;
58+
}
59+
60+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.vod20170321.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class GetAppPlayKeyResponse extends TeaModel {
7+
@NameInMap("headers")
8+
public java.util.Map<String, String> headers;
9+
10+
@NameInMap("statusCode")
11+
public Integer statusCode;
12+
13+
@NameInMap("body")
14+
public GetAppPlayKeyResponseBody body;
15+
16+
public static GetAppPlayKeyResponse build(java.util.Map<String, ?> map) throws Exception {
17+
GetAppPlayKeyResponse self = new GetAppPlayKeyResponse();
18+
return TeaModel.build(map, self);
19+
}
20+
21+
public GetAppPlayKeyResponse setHeaders(java.util.Map<String, String> headers) {
22+
this.headers = headers;
23+
return this;
24+
}
25+
public java.util.Map<String, String> getHeaders() {
26+
return this.headers;
27+
}
28+
29+
public GetAppPlayKeyResponse setStatusCode(Integer statusCode) {
30+
this.statusCode = statusCode;
31+
return this;
32+
}
33+
public Integer getStatusCode() {
34+
return this.statusCode;
35+
}
36+
37+
public GetAppPlayKeyResponse setBody(GetAppPlayKeyResponseBody body) {
38+
this.body = body;
39+
return this;
40+
}
41+
public GetAppPlayKeyResponseBody getBody() {
42+
return this.body;
43+
}
44+
45+
}
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.vod20170321.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class GetAppPlayKeyResponseBody extends TeaModel {
7+
@NameInMap("AppPlayKey")
8+
public GetAppPlayKeyResponseBodyAppPlayKey appPlayKey;
9+
10+
/**
11+
* <strong>example:</strong>
12+
* <p>25818875-5F78-4A*****F6-D7393642CA58</p>
13+
*/
14+
@NameInMap("RequestId")
15+
public String requestId;
16+
17+
public static GetAppPlayKeyResponseBody build(java.util.Map<String, ?> map) throws Exception {
18+
GetAppPlayKeyResponseBody self = new GetAppPlayKeyResponseBody();
19+
return TeaModel.build(map, self);
20+
}
21+
22+
public GetAppPlayKeyResponseBody setAppPlayKey(GetAppPlayKeyResponseBodyAppPlayKey appPlayKey) {
23+
this.appPlayKey = appPlayKey;
24+
return this;
25+
}
26+
public GetAppPlayKeyResponseBodyAppPlayKey getAppPlayKey() {
27+
return this.appPlayKey;
28+
}
29+
30+
public GetAppPlayKeyResponseBody setRequestId(String requestId) {
31+
this.requestId = requestId;
32+
return this;
33+
}
34+
public String getRequestId() {
35+
return this.requestId;
36+
}
37+
38+
public static class GetAppPlayKeyResponseBodyAppPlayKey extends TeaModel {
39+
/**
40+
* <strong>example:</strong>
41+
* <p>app-1000000</p>
42+
*/
43+
@NameInMap("AppId")
44+
public String appId;
45+
46+
/**
47+
* <strong>example:</strong>
48+
* <p>2025-03-18T03:59:01Z</p>
49+
*/
50+
@NameInMap("CreationTime")
51+
public String creationTime;
52+
53+
/**
54+
* <strong>example:</strong>
55+
* <p>2025-03-18T03:59:01Z</p>
56+
*/
57+
@NameInMap("ModificationTime")
58+
public String modificationTime;
59+
60+
/**
61+
* <strong>example:</strong>
62+
* <p>yzNgTUtAl6HAuosIA</p>
63+
*/
64+
@NameInMap("PlayKey")
65+
public String playKey;
66+
67+
public static GetAppPlayKeyResponseBodyAppPlayKey build(java.util.Map<String, ?> map) throws Exception {
68+
GetAppPlayKeyResponseBodyAppPlayKey self = new GetAppPlayKeyResponseBodyAppPlayKey();
69+
return TeaModel.build(map, self);
70+
}
71+
72+
public GetAppPlayKeyResponseBodyAppPlayKey setAppId(String appId) {
73+
this.appId = appId;
74+
return this;
75+
}
76+
public String getAppId() {
77+
return this.appId;
78+
}
79+
80+
public GetAppPlayKeyResponseBodyAppPlayKey setCreationTime(String creationTime) {
81+
this.creationTime = creationTime;
82+
return this;
83+
}
84+
public String getCreationTime() {
85+
return this.creationTime;
86+
}
87+
88+
public GetAppPlayKeyResponseBodyAppPlayKey setModificationTime(String modificationTime) {
89+
this.modificationTime = modificationTime;
90+
return this;
91+
}
92+
public String getModificationTime() {
93+
return this.modificationTime;
94+
}
95+
96+
public GetAppPlayKeyResponseBodyAppPlayKey setPlayKey(String playKey) {
97+
this.playKey = playKey;
98+
return this;
99+
}
100+
public String getPlayKey() {
101+
return this.playKey;
102+
}
103+
104+
}
105+
106+
}

0 commit comments

Comments
 (0)