From 9fa3e282b10f5db5eaab030695a3258a6b3a49df Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 6 Aug 2024 09:47:28 +0000 Subject: [PATCH] Update to support new apis. --- aliyun-java-sdk-live/ChangeLog.txt | 3 + aliyun-java-sdk-live/pom.xml | 2 +- .../DescribeLiveStreamsOnlineListRequest.java | 13 --- .../ListLiveMessageAppsResponse.java | 70 ++++++++-------- .../ListRtcMPUTaskDetailResponse.java | 23 ++++++ .../v20161101/StartLiveMPUTaskRequest.java | 82 +++++++++++++------ .../v20161101/UpdateLiveMPUTaskRequest.java | 28 +++++++ ...stLiveMessageAppsResponseUnmarshaller.java | 6 +- ...tRtcMPUTaskDetailResponseUnmarshaller.java | 10 +++ 9 files changed, 158 insertions(+), 79 deletions(-) diff --git a/aliyun-java-sdk-live/ChangeLog.txt b/aliyun-java-sdk-live/ChangeLog.txt index 70c6bffc52..53fc254746 100644 --- a/aliyun-java-sdk-live/ChangeLog.txt +++ b/aliyun-java-sdk-live/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-08-06 Version: 3.9.57 +- Update to support new apis. + 2024-08-01 Version: 3.9.56 - Update to support new apis. diff --git a/aliyun-java-sdk-live/pom.xml b/aliyun-java-sdk-live/pom.xml index c19ae08626..d4cdf98c35 100644 --- a/aliyun-java-sdk-live/pom.xml +++ b/aliyun-java-sdk-live/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-live jar - 3.9.56 + 3.9.57 aliyun-java-sdk-live http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveStreamsOnlineListRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveStreamsOnlineListRequest.java index d0f0ca88c4..e88687bb0f 100644 --- a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveStreamsOnlineListRequest.java +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveStreamsOnlineListRequest.java @@ -33,8 +33,6 @@ public class DescribeLiveStreamsOnlineListRequest extends RpcAcsRequest appList; + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + public Boolean getHasMore() { return this.hasMore; } @@ -49,14 +57,6 @@ public void setNextPageToken(Long nextPageToken) { this.nextPageToken = nextPageToken; } - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - public List getAppList() { return this.appList; } @@ -71,20 +71,20 @@ public static class Apps { private String appKey; - private String appName; - private String appSign; - private Long createTime; + private String disable; - private String dataCenter; + private String appName; - private String disable; + private Long createTime; private Long modifyTime; private Integer msgLifeCycle; + private String dataCenter; + public String getAppId() { return this.appId; } @@ -101,14 +101,6 @@ public void setAppKey(String appKey) { this.appKey = appKey; } - public String getAppName() { - return this.appName; - } - - public void setAppName(String appName) { - this.appName = appName; - } - public String getAppSign() { return this.appSign; } @@ -117,28 +109,28 @@ public void setAppSign(String appSign) { this.appSign = appSign; } - public Long getCreateTime() { - return this.createTime; + public String getDisable() { + return this.disable; } - public void setCreateTime(Long createTime) { - this.createTime = createTime; + public void setDisable(String disable) { + this.disable = disable; } - public String getDataCenter() { - return this.dataCenter; + public String getAppName() { + return this.appName; } - public void setDataCenter(String dataCenter) { - this.dataCenter = dataCenter; + public void setAppName(String appName) { + this.appName = appName; } - public String getDisable() { - return this.disable; + public Long getCreateTime() { + return this.createTime; } - public void setDisable(String disable) { - this.disable = disable; + public void setCreateTime(Long createTime) { + this.createTime = createTime; } public Long getModifyTime() { @@ -156,6 +148,14 @@ public Integer getMsgLifeCycle() { public void setMsgLifeCycle(Integer msgLifeCycle) { this.msgLifeCycle = msgLifeCycle; } + + public String getDataCenter() { + return this.dataCenter; + } + + public void setDataCenter(String dataCenter) { + this.dataCenter = dataCenter; + } } @Override diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListRtcMPUTaskDetailResponse.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListRtcMPUTaskDetailResponse.java index f99a9c2978..84c6f569ff 100644 --- a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListRtcMPUTaskDetailResponse.java +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListRtcMPUTaskDetailResponse.java @@ -59,6 +59,8 @@ public static class MpuTask { private String region; + private List multiStreamURL; + private SingleSubParams singleSubParams; private TranscodeParams transcodeParams; @@ -113,6 +115,14 @@ public void setRegion(String region) { this.region = region; } + public List getMultiStreamURL() { + return this.multiStreamURL; + } + + public void setMultiStreamURL(List multiStreamURL) { + this.multiStreamURL = multiStreamURL; + } + public SingleSubParams getSingleSubParams() { return this.singleSubParams; } @@ -137,6 +147,19 @@ public void setSeiParams(SeiParams seiParams) { this.seiParams = seiParams; } + public static class MultiStreamURLItem { + + private String uRL; + + public String getURL() { + return this.uRL; + } + + public void setURL(String uRL) { + this.uRL = uRL; + } + } + public static class SingleSubParams { private String sourceType; diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/StartLiveMPUTaskRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/StartLiveMPUTaskRequest.java index bf601017f7..3eb61352fd 100644 --- a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/StartLiveMPUTaskRequest.java +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/StartLiveMPUTaskRequest.java @@ -31,6 +31,13 @@ public class StartLiveMPUTaskRequest extends RpcAcsRequest multiStreamURL; + @SerializedName("seiParams") private SeiParams seiParams; @@ -43,11 +50,7 @@ public class StartLiveMPUTaskRequest extends RpcAcsRequest getMultiStreamURL() { + return this.multiStreamURL; + } + + public void setMultiStreamURL(List multiStreamURL) { + this.multiStreamURL = multiStreamURL; + if (multiStreamURL != null) { + putQueryParameter("MultiStreamURL" , new Gson().toJson(multiStreamURL)); + } + } + public SeiParams getSeiParams() { return this.seiParams; } @@ -134,28 +170,6 @@ public void setChannelId(String channelId) { } } - public String getTaskId() { - return this.taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - if(taskId != null){ - putQueryParameter("TaskId", taskId); - } - } - - public String getStreamURL() { - return this.streamURL; - } - - public void setStreamURL(String streamURL) { - this.streamURL = streamURL; - if(streamURL != null){ - putQueryParameter("StreamURL", streamURL); - } - } - public static class SingleSubParams { @SerializedName("StreamType") @@ -192,6 +206,20 @@ public void setUserId(String userId) { } } + public static class MultiStreamURL { + + @SerializedName("URL") + private String uRL; + + public String getURL() { + return this.uRL; + } + + public void setURL(String uRL) { + this.uRL = uRL; + } + } + public static class SeiParams { @SerializedName("PayloadType") diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateLiveMPUTaskRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateLiveMPUTaskRequest.java index b7f33200b9..2253e17f58 100644 --- a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateLiveMPUTaskRequest.java +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateLiveMPUTaskRequest.java @@ -28,6 +28,9 @@ public class UpdateLiveMPUTaskRequest extends RpcAcsRequest { + @SerializedName("multiStreamURL") + private List multiStreamURL; + @SerializedName("singleSubParams") private SingleSubParams singleSubParams; @@ -55,6 +58,17 @@ public UpdateLiveMPUTaskRequest() { } catch (Exception e) {} } + public List getMultiStreamURL() { + return this.multiStreamURL; + } + + public void setMultiStreamURL(List multiStreamURL) { + this.multiStreamURL = multiStreamURL; + if (multiStreamURL != null) { + putQueryParameter("MultiStreamURL" , new Gson().toJson(multiStreamURL)); + } + } + public SingleSubParams getSingleSubParams() { return this.singleSubParams; } @@ -143,6 +157,20 @@ public void setStreamURL(String streamURL) { } } + public static class MultiStreamURL { + + @SerializedName("URL") + private String uRL; + + public String getURL() { + return this.uRL; + } + + public void setURL(String uRL) { + this.uRL = uRL; + } + } + public static class SingleSubParams { @SerializedName("StreamType") diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListLiveMessageAppsResponseUnmarshaller.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListLiveMessageAppsResponseUnmarshaller.java index 07397f36ac..e27e84a3bc 100644 --- a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListLiveMessageAppsResponseUnmarshaller.java +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListLiveMessageAppsResponseUnmarshaller.java @@ -35,13 +35,13 @@ public static ListLiveMessageAppsResponse unmarshall(ListLiveMessageAppsResponse Apps apps = new Apps(); apps.setAppId(_ctx.stringValue("ListLiveMessageAppsResponse.AppList["+ i +"].AppId")); apps.setAppKey(_ctx.stringValue("ListLiveMessageAppsResponse.AppList["+ i +"].AppKey")); - apps.setAppName(_ctx.stringValue("ListLiveMessageAppsResponse.AppList["+ i +"].AppName")); apps.setAppSign(_ctx.stringValue("ListLiveMessageAppsResponse.AppList["+ i +"].AppSign")); - apps.setCreateTime(_ctx.longValue("ListLiveMessageAppsResponse.AppList["+ i +"].CreateTime")); - apps.setDataCenter(_ctx.stringValue("ListLiveMessageAppsResponse.AppList["+ i +"].DataCenter")); apps.setDisable(_ctx.stringValue("ListLiveMessageAppsResponse.AppList["+ i +"].Disable")); + apps.setAppName(_ctx.stringValue("ListLiveMessageAppsResponse.AppList["+ i +"].AppName")); + apps.setCreateTime(_ctx.longValue("ListLiveMessageAppsResponse.AppList["+ i +"].CreateTime")); apps.setModifyTime(_ctx.longValue("ListLiveMessageAppsResponse.AppList["+ i +"].ModifyTime")); apps.setMsgLifeCycle(_ctx.integerValue("ListLiveMessageAppsResponse.AppList["+ i +"].MsgLifeCycle")); + apps.setDataCenter(_ctx.stringValue("ListLiveMessageAppsResponse.AppList["+ i +"].DataCenter")); appList.add(apps); } diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListRtcMPUTaskDetailResponseUnmarshaller.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListRtcMPUTaskDetailResponseUnmarshaller.java index 93c21ba5ad..8be8a4ad01 100644 --- a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListRtcMPUTaskDetailResponseUnmarshaller.java +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListRtcMPUTaskDetailResponseUnmarshaller.java @@ -19,6 +19,7 @@ import com.aliyuncs.live.model.v20161101.ListRtcMPUTaskDetailResponse; import com.aliyuncs.live.model.v20161101.ListRtcMPUTaskDetailResponse.MpuTask; +import com.aliyuncs.live.model.v20161101.ListRtcMPUTaskDetailResponse.MpuTask.MultiStreamURLItem; import com.aliyuncs.live.model.v20161101.ListRtcMPUTaskDetailResponse.MpuTask.SeiParams; import com.aliyuncs.live.model.v20161101.ListRtcMPUTaskDetailResponse.MpuTask.SeiParams.LayoutVolume; import com.aliyuncs.live.model.v20161101.ListRtcMPUTaskDetailResponse.MpuTask.SeiParams.PassThrough; @@ -135,6 +136,15 @@ public static ListRtcMPUTaskDetailResponse unmarshall(ListRtcMPUTaskDetailRespon seiParams.setPassThrough(passThrough); mpuTask.setSeiParams(seiParams); + List multiStreamURL = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].MultiStreamURL.Length"); j++) { + MultiStreamURLItem multiStreamURLItem = new MultiStreamURLItem(); + multiStreamURLItem.setURL(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].MultiStreamURL["+ j +"].URL")); + + multiStreamURL.add(multiStreamURLItem); + } + mpuTask.setMultiStreamURL(multiStreamURL); + mPUTasks.add(mpuTask); } listRtcMPUTaskDetailResponse.setMPUTasks(mPUTasks);