Skip to content

Commit

Permalink
Support Media StorageClass.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 13, 2023
1 parent 495035c commit c8a168f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-vod/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-12-13 Version: 2.16.20
- Support Media StorageClass.

2023-11-15 Version: 2.16.19
- Latest version for php.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-vod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-vod</artifactId>
<packaging>jar</packaging>
<version>2.16.19</version>
<version>2.16.20</version>
<name>aliyun-java-sdk-vod</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ public static class VideoBase {

private String danMuURL;

private String storageClass;

private List<Thumbnail> thumbnailList;

public String getCreationTime() {
Expand Down Expand Up @@ -432,6 +434,14 @@ public void setDanMuURL(String danMuURL) {
this.danMuURL = danMuURL;
}

public String getStorageClass() {
return this.storageClass;
}

public void setStorageClass(String storageClass) {
this.storageClass = storageClass;
}

public List<Thumbnail> getThumbnailList() {
return this.thumbnailList;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public class UpdateMediaStorageClassRequest extends RpcAcsRequest<UpdateMediaSto

private String mediaIds;

private String storageClass;
private String storageClass;

private Boolean allowUpdateWithoutTimeLimit;
public UpdateMediaStorageClassRequest() {
super("vod", "2017-03-21", "UpdateMediaStorageClass", "vod");
setMethod(MethodType.POST);
Expand Down Expand Up @@ -83,6 +85,17 @@ public void setStorageClass(String storageClass) {
if(storageClass != null){
putQueryParameter("StorageClass", storageClass);
}
}

public Boolean getAllowUpdateWithoutTimeLimit() {
return this.allowUpdateWithoutTimeLimit;
}

public void setAllowUpdateWithoutTimeLimit(Boolean allowUpdateWithoutTimeLimit) {
this.allowUpdateWithoutTimeLimit = allowUpdateWithoutTimeLimit;
if(allowUpdateWithoutTimeLimit != null){
putQueryParameter("AllowUpdateWithoutTimeLimit", allowUpdateWithoutTimeLimit.toString());
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static GetPlayInfoResponse unmarshall(GetPlayInfoResponse getPlayInfoResp
videoBase.setTitle(_ctx.stringValue("GetPlayInfoResponse.VideoBase.Title"));
videoBase.setMediaType(_ctx.stringValue("GetPlayInfoResponse.VideoBase.MediaType"));
videoBase.setDanMuURL(_ctx.stringValue("GetPlayInfoResponse.VideoBase.DanMuURL"));
videoBase.setStorageClass(_ctx.stringValue("GetPlayInfoResponse.VideoBase.StorageClass"));

List<Thumbnail> thumbnailList = new ArrayList<Thumbnail>();
for (int i = 0; i < _ctx.lengthValue("GetPlayInfoResponse.VideoBase.ThumbnailList.Length"); i++) {
Expand Down

0 comments on commit c8a168f

Please sign in to comment.