Skip to content

Commit 2500f18

Browse files
committed
Support API VideoDRMLicense.
1 parent 3988f3b commit 2500f18

File tree

10 files changed

+288
-2
lines changed

10 files changed

+288
-2
lines changed

pds-20220301/ChangeLog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2025-03-10 Version: 4.1.0
2+
- Support API VideoDRMLicense.
3+
- Update API ListRecyclebin: update param body.
4+
- Update API SearchFile: update param body.
5+
6+
17
2025-01-10 Version: 4.0.3
28
- Generated java 2022-03-01 for pds.
39

pds-20220301/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>pds20220301</artifactId>
6-
<version>4.0.3</version>
6+
<version>4.1.0</version>
77
<packaging>jar</packaging>
88
<name>pds20220301</name>
99
<description>Alibaba Cloud pds (20220301) SDK for Java

pds-20220301/src/main/java/com/aliyun/pds20220301/Client.java

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class Client extends com.aliyun.teaopenapi.Client {
88

99
public Client(com.aliyun.teaopenapi.models.Config config) throws Exception {
1010
super(config);
11+
this._productId = "pds";
1112
com.aliyun.gateway.pds.Client gatewayClient = new com.aliyun.gateway.pds.Client();
1213
this._spi = gatewayClient;
1314
this._disableHttp2 = true;
@@ -4586,6 +4587,10 @@ public ListRecyclebinResponse listRecyclebinWithOptions(ListRecyclebinRequest re
45864587
body.put("marker", request.marker);
45874588
}
45884589

4590+
if (!com.aliyun.teautil.Common.isUnset(request.thumbnailProcesses)) {
4591+
body.put("thumbnail_processes", request.thumbnailProcesses);
4592+
}
4593+
45894594
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
45904595
new TeaPair("headers", headers),
45914596
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
@@ -5633,6 +5638,10 @@ public SearchFileResponse searchFileWithOptions(SearchFileRequest request, java.
56335638
body.put("return_total_count", request.returnTotalCount);
56345639
}
56355640

5641+
if (!com.aliyun.teautil.Common.isUnset(request.thumbnailProcesses)) {
5642+
body.put("thumbnail_processes", request.thumbnailProcesses);
5643+
}
5644+
56365645
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
56375646
new TeaPair("headers", headers),
56385647
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
@@ -6902,4 +6911,55 @@ public UpdateUserResponse updateUser(UpdateUserRequest request) throws Exception
69026911
java.util.Map<String, String> headers = new java.util.HashMap<>();
69036912
return this.updateUserWithOptions(request, headers, runtime);
69046913
}
6914+
6915+
/**
6916+
* <b>summary</b> :
6917+
* <p>获取视频的DRM License</p>
6918+
*
6919+
* @param request VideoDRMLicenseRequest
6920+
* @param headers map
6921+
* @param runtime runtime options for this request RuntimeOptions
6922+
* @return VideoDRMLicenseResponse
6923+
*/
6924+
public VideoDRMLicenseResponse videoDRMLicenseWithOptions(VideoDRMLicenseRequest request, java.util.Map<String, String> headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
6925+
com.aliyun.teautil.Common.validateModel(request);
6926+
java.util.Map<String, Object> body = new java.util.HashMap<>();
6927+
if (!com.aliyun.teautil.Common.isUnset(request.drmType)) {
6928+
body.put("drmType", request.drmType);
6929+
}
6930+
6931+
if (!com.aliyun.teautil.Common.isUnset(request.licenseRequest)) {
6932+
body.put("licenseRequest", request.licenseRequest);
6933+
}
6934+
6935+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
6936+
new TeaPair("headers", headers),
6937+
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
6938+
));
6939+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
6940+
new TeaPair("action", "VideoDRMLicense"),
6941+
new TeaPair("version", "2022-03-01"),
6942+
new TeaPair("protocol", "HTTPS"),
6943+
new TeaPair("pathname", "/v2/file/video_drm_license"),
6944+
new TeaPair("method", "POST"),
6945+
new TeaPair("authType", "AK"),
6946+
new TeaPair("style", "ROA"),
6947+
new TeaPair("reqBodyType", "json"),
6948+
new TeaPair("bodyType", "json")
6949+
));
6950+
return TeaModel.toModel(this.execute(params, req, runtime), new VideoDRMLicenseResponse());
6951+
}
6952+
6953+
/**
6954+
* <b>summary</b> :
6955+
* <p>获取视频的DRM License</p>
6956+
*
6957+
* @param request VideoDRMLicenseRequest
6958+
* @return VideoDRMLicenseResponse
6959+
*/
6960+
public VideoDRMLicenseResponse videoDRMLicense(VideoDRMLicenseRequest request) throws Exception {
6961+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
6962+
java.util.Map<String, String> headers = new java.util.HashMap<>();
6963+
return this.videoDRMLicenseWithOptions(request, headers, runtime);
6964+
}
69056965
}

pds-20220301/src/main/java/com/aliyun/pds20220301/models/CreateFileRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public class CreateFileRequest extends TeaModel {
129129
public String localModifiedAt;
130130

131131
/**
132-
* <p>The name of the file. The name can be up to 1,024 bytes in length based on the UTF-8 encoding rule and cannot end with a forward slash (/).</p>
132+
* <p>The name of the file. The name can be up to 1,024 bytes in length based on the UTF-8 encoding rule and cannot contain forward slash (/).</p>
133133
* <p>This parameter is required.</p>
134134
*
135135
* <strong>example:</strong>

pds-20220301/src/main/java/com/aliyun/pds20220301/models/File.java

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ public class File extends TeaModel {
77
@NameInMap("action_list")
88
public java.util.List<String> actionList;
99

10+
@NameInMap("auto_delete_left_sec")
11+
public Long autoDeleteLeftSec;
12+
1013
@NameInMap("category")
1114
public String category;
1215

@@ -28,6 +31,9 @@ public class File extends TeaModel {
2831
@NameInMap("description")
2932
public String description;
3033

34+
@NameInMap("dir_size_info")
35+
public FileDirSizeInfo dirSizeInfo;
36+
3137
@NameInMap("domain_id")
3238
public String domainId;
3339

@@ -119,6 +125,14 @@ public java.util.List<String> getActionList() {
119125
return this.actionList;
120126
}
121127

128+
public File setAutoDeleteLeftSec(Long autoDeleteLeftSec) {
129+
this.autoDeleteLeftSec = autoDeleteLeftSec;
130+
return this;
131+
}
132+
public Long getAutoDeleteLeftSec() {
133+
return this.autoDeleteLeftSec;
134+
}
135+
122136
public File setCategory(String category) {
123137
this.category = category;
124138
return this;
@@ -175,6 +189,14 @@ public String getDescription() {
175189
return this.description;
176190
}
177191

192+
public File setDirSizeInfo(FileDirSizeInfo dirSizeInfo) {
193+
this.dirSizeInfo = dirSizeInfo;
194+
return this;
195+
}
196+
public FileDirSizeInfo getDirSizeInfo() {
197+
return this.dirSizeInfo;
198+
}
199+
178200
public File setDomainId(String domainId) {
179201
this.domainId = domainId;
180202
return this;
@@ -383,4 +405,34 @@ public VideoMediaMetadata getVideoMediaMetadata() {
383405
return this.videoMediaMetadata;
384406
}
385407

408+
public static class FileDirSizeInfo extends TeaModel {
409+
@NameInMap("dir_count")
410+
public Long dirCount;
411+
412+
@NameInMap("file_count")
413+
public Long fileCount;
414+
415+
public static FileDirSizeInfo build(java.util.Map<String, ?> map) throws Exception {
416+
FileDirSizeInfo self = new FileDirSizeInfo();
417+
return TeaModel.build(map, self);
418+
}
419+
420+
public FileDirSizeInfo setDirCount(Long dirCount) {
421+
this.dirCount = dirCount;
422+
return this;
423+
}
424+
public Long getDirCount() {
425+
return this.dirCount;
426+
}
427+
428+
public FileDirSizeInfo setFileCount(Long fileCount) {
429+
this.fileCount = fileCount;
430+
return this;
431+
}
432+
public Long getFileCount() {
433+
return this.fileCount;
434+
}
435+
436+
}
437+
386438
}

pds-20220301/src/main/java/com/aliyun/pds20220301/models/ListRecyclebinRequest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public class ListRecyclebinRequest extends TeaModel {
4747
@NameInMap("marker")
4848
public String marker;
4949

50+
@NameInMap("thumbnail_processes")
51+
public java.util.Map<String, ImageProcess> thumbnailProcesses;
52+
5053
public static ListRecyclebinRequest build(java.util.Map<String, ?> map) throws Exception {
5154
ListRecyclebinRequest self = new ListRecyclebinRequest();
5255
return TeaModel.build(map, self);
@@ -84,4 +87,12 @@ public String getMarker() {
8487
return this.marker;
8588
}
8689

90+
public ListRecyclebinRequest setThumbnailProcesses(java.util.Map<String, ImageProcess> thumbnailProcesses) {
91+
this.thumbnailProcesses = thumbnailProcesses;
92+
return this;
93+
}
94+
public java.util.Map<String, ImageProcess> getThumbnailProcesses() {
95+
return this.thumbnailProcesses;
96+
}
97+
8798
}

pds-20220301/src/main/java/com/aliyun/pds20220301/models/SearchFileRequest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ public class SearchFileRequest extends TeaModel {
8989
@NameInMap("return_total_count")
9090
public Boolean returnTotalCount;
9191

92+
@NameInMap("thumbnail_processes")
93+
public java.util.Map<String, ImageProcess> thumbnailProcesses;
94+
9295
public static SearchFileRequest build(java.util.Map<String, ?> map) throws Exception {
9396
SearchFileRequest self = new SearchFileRequest();
9497
return TeaModel.build(map, self);
@@ -159,4 +162,12 @@ public Boolean getReturnTotalCount() {
159162
return this.returnTotalCount;
160163
}
161164

165+
public SearchFileRequest setThumbnailProcesses(java.util.Map<String, ImageProcess> thumbnailProcesses) {
166+
this.thumbnailProcesses = thumbnailProcesses;
167+
return this;
168+
}
169+
public java.util.Map<String, ImageProcess> getThumbnailProcesses() {
170+
return this.thumbnailProcesses;
171+
}
172+
162173
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.pds20220301.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class VideoDRMLicenseRequest extends TeaModel {
7+
/**
8+
* <p>This parameter is required.</p>
9+
*
10+
* <strong>example:</strong>
11+
* <p>widevine</p>
12+
*/
13+
@NameInMap("drmType")
14+
public String drmType;
15+
16+
/**
17+
* <strong>example:</strong>
18+
* <p>CAES6B8SQgpACioSENGxDhqCLIVwwCBOyPayyWoSENGxDhqCLIVwwCBOyPayyWpI88aJmwYQARoQdRV32</p>
19+
*/
20+
@NameInMap("licenseRequest")
21+
public String licenseRequest;
22+
23+
public static VideoDRMLicenseRequest build(java.util.Map<String, ?> map) throws Exception {
24+
VideoDRMLicenseRequest self = new VideoDRMLicenseRequest();
25+
return TeaModel.build(map, self);
26+
}
27+
28+
public VideoDRMLicenseRequest setDrmType(String drmType) {
29+
this.drmType = drmType;
30+
return this;
31+
}
32+
public String getDrmType() {
33+
return this.drmType;
34+
}
35+
36+
public VideoDRMLicenseRequest setLicenseRequest(String licenseRequest) {
37+
this.licenseRequest = licenseRequest;
38+
return this;
39+
}
40+
public String getLicenseRequest() {
41+
return this.licenseRequest;
42+
}
43+
44+
}
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.pds20220301.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class VideoDRMLicenseResponse 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 VideoDRMLicenseResponseBody body;
15+
16+
public static VideoDRMLicenseResponse build(java.util.Map<String, ?> map) throws Exception {
17+
VideoDRMLicenseResponse self = new VideoDRMLicenseResponse();
18+
return TeaModel.build(map, self);
19+
}
20+
21+
public VideoDRMLicenseResponse 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 VideoDRMLicenseResponse setStatusCode(Integer statusCode) {
30+
this.statusCode = statusCode;
31+
return this;
32+
}
33+
public Integer getStatusCode() {
34+
return this.statusCode;
35+
}
36+
37+
public VideoDRMLicenseResponse setBody(VideoDRMLicenseResponseBody body) {
38+
this.body = body;
39+
return this;
40+
}
41+
public VideoDRMLicenseResponseBody getBody() {
42+
return this.body;
43+
}
44+
45+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.pds20220301.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class VideoDRMLicenseResponseBody extends TeaModel {
7+
/**
8+
* <strong>example:</strong>
9+
* <p>cb9swCy8P50H9KePsxET3jZ1tm41bDs9HTsxbWnsjf3bsf6QGdiS4kZPhDaskimbNyAfNjmhQRmWFt3AhwNF3</p>
10+
*/
11+
@NameInMap("data")
12+
public String data;
13+
14+
/**
15+
* <strong>example:</strong>
16+
* <p>&quot;&quot;</p>
17+
*/
18+
@NameInMap("device_info")
19+
public String deviceInfo;
20+
21+
/**
22+
* <strong>example:</strong>
23+
* <p>0</p>
24+
*/
25+
@NameInMap("states")
26+
public String states;
27+
28+
public static VideoDRMLicenseResponseBody build(java.util.Map<String, ?> map) throws Exception {
29+
VideoDRMLicenseResponseBody self = new VideoDRMLicenseResponseBody();
30+
return TeaModel.build(map, self);
31+
}
32+
33+
public VideoDRMLicenseResponseBody setData(String data) {
34+
this.data = data;
35+
return this;
36+
}
37+
public String getData() {
38+
return this.data;
39+
}
40+
41+
public VideoDRMLicenseResponseBody setDeviceInfo(String deviceInfo) {
42+
this.deviceInfo = deviceInfo;
43+
return this;
44+
}
45+
public String getDeviceInfo() {
46+
return this.deviceInfo;
47+
}
48+
49+
public VideoDRMLicenseResponseBody setStates(String states) {
50+
this.states = states;
51+
return this;
52+
}
53+
public String getStates() {
54+
return this.states;
55+
}
56+
57+
}

0 commit comments

Comments
 (0)