diff --git a/aliyun-java-sdk-live/ChangeLog.txt b/aliyun-java-sdk-live/ChangeLog.txt index 69603f9e84..4698edf903 100644 --- a/aliyun-java-sdk-live/ChangeLog.txt +++ b/aliyun-java-sdk-live/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-11-14 Version: 3.9.63 +- Generated 2016-11-01 for `live`. + 2024-10-30 Version: 3.9.62 - Update to support new apis. diff --git a/aliyun-java-sdk-live/pom.xml b/aliyun-java-sdk-live/pom.xml index d2b303f67e..9d110ef821 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.62 + 3.9.63 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/CreateLiveAIStudioRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/CreateLiveAIStudioRequest.java new file mode 100644 index 0000000000..5526425160 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/CreateLiveAIStudioRequest.java @@ -0,0 +1,301 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.model.v20161101; + +import com.aliyuncs.RpcAcsRequest; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.live.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateLiveAIStudioRequest extends RpcAcsRequest { + + + private String backgroundResourceId; + + private String description; + + @SerializedName("mediaLayout") + private MediaLayout mediaLayout; + + private String backgroundType; + + private String mattingType; + + private String mediaResourceUrl; + + private Integer height; + + private String backgroundResourceUrl; + + private String mediaResourceId; + + @SerializedName("mattingLayout") + private MattingLayout mattingLayout; + + private Long ownerId; + + private String studioName; + + private Integer width; + + private String mediaType; + public CreateLiveAIStudioRequest() { + super("live", "2016-11-01", "CreateLiveAIStudio", "live"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getBackgroundResourceId() { + return this.backgroundResourceId; + } + + public void setBackgroundResourceId(String backgroundResourceId) { + this.backgroundResourceId = backgroundResourceId; + if(backgroundResourceId != null){ + putQueryParameter("BackgroundResourceId", backgroundResourceId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public MediaLayout getMediaLayout() { + return this.mediaLayout; + } + + public void setMediaLayout(MediaLayout mediaLayout) { + this.mediaLayout = mediaLayout; + if (mediaLayout != null) { + putQueryParameter("MediaLayout" , new Gson().toJson(mediaLayout)); + } + } + + public String getBackgroundType() { + return this.backgroundType; + } + + public void setBackgroundType(String backgroundType) { + this.backgroundType = backgroundType; + if(backgroundType != null){ + putQueryParameter("BackgroundType", backgroundType); + } + } + + public String getMattingType() { + return this.mattingType; + } + + public void setMattingType(String mattingType) { + this.mattingType = mattingType; + if(mattingType != null){ + putQueryParameter("MattingType", mattingType); + } + } + + public String getMediaResourceUrl() { + return this.mediaResourceUrl; + } + + public void setMediaResourceUrl(String mediaResourceUrl) { + this.mediaResourceUrl = mediaResourceUrl; + if(mediaResourceUrl != null){ + putQueryParameter("MediaResourceUrl", mediaResourceUrl); + } + } + + public Integer getHeight() { + return this.height; + } + + public void setHeight(Integer height) { + this.height = height; + if(height != null){ + putQueryParameter("Height", height.toString()); + } + } + + public String getBackgroundResourceUrl() { + return this.backgroundResourceUrl; + } + + public void setBackgroundResourceUrl(String backgroundResourceUrl) { + this.backgroundResourceUrl = backgroundResourceUrl; + if(backgroundResourceUrl != null){ + putQueryParameter("BackgroundResourceUrl", backgroundResourceUrl); + } + } + + public String getMediaResourceId() { + return this.mediaResourceId; + } + + public void setMediaResourceId(String mediaResourceId) { + this.mediaResourceId = mediaResourceId; + if(mediaResourceId != null){ + putQueryParameter("MediaResourceId", mediaResourceId); + } + } + + public MattingLayout getMattingLayout() { + return this.mattingLayout; + } + + public void setMattingLayout(MattingLayout mattingLayout) { + this.mattingLayout = mattingLayout; + if (mattingLayout != null) { + putQueryParameter("MattingLayout" , new Gson().toJson(mattingLayout)); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getStudioName() { + return this.studioName; + } + + public void setStudioName(String studioName) { + this.studioName = studioName; + if(studioName != null){ + putQueryParameter("StudioName", studioName); + } + } + + public Integer getWidth() { + return this.width; + } + + public void setWidth(Integer width) { + this.width = width; + if(width != null){ + putQueryParameter("Width", width.toString()); + } + } + + public String getMediaType() { + return this.mediaType; + } + + public void setMediaType(String mediaType) { + this.mediaType = mediaType; + if(mediaType != null){ + putQueryParameter("MediaType", mediaType); + } + } + + public static class MediaLayout { + + @SerializedName("PositionX") + private Float positionX; + + @SerializedName("PositionY") + private Float positionY; + + @SerializedName("HeightNormalized") + private Float heightNormalized; + + public Float getPositionX() { + return this.positionX; + } + + public void setPositionX(Float positionX) { + this.positionX = positionX; + } + + public Float getPositionY() { + return this.positionY; + } + + public void setPositionY(Float positionY) { + this.positionY = positionY; + } + + public Float getHeightNormalized() { + return this.heightNormalized; + } + + public void setHeightNormalized(Float heightNormalized) { + this.heightNormalized = heightNormalized; + } + } + + public static class MattingLayout { + + @SerializedName("PositionX") + private Float positionX; + + @SerializedName("PositionY") + private Float positionY; + + @SerializedName("HeightNormalized") + private Float heightNormalized; + + public Float getPositionX() { + return this.positionX; + } + + public void setPositionX(Float positionX) { + this.positionX = positionX; + } + + public Float getPositionY() { + return this.positionY; + } + + public void setPositionY(Float positionY) { + this.positionY = positionY; + } + + public Float getHeightNormalized() { + return this.heightNormalized; + } + + public void setHeightNormalized(Float heightNormalized) { + this.heightNormalized = heightNormalized; + } + } + + @Override + public Class getResponseClass() { + return CreateLiveAIStudioResponse.class; + } + +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/CreateLiveAIStudioResponse.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/CreateLiveAIStudioResponse.java new file mode 100644 index 0000000000..5582b6849f --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/CreateLiveAIStudioResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.model.v20161101; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.live.transform.v20161101.CreateLiveAIStudioResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateLiveAIStudioResponse extends AcsResponse { + + private String requestId; + + private String studioId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getStudioId() { + return this.studioId; + } + + public void setStudioId(String studioId) { + this.studioId = studioId; + } + + @Override + public CreateLiveAIStudioResponse getInstance(UnmarshallerContext context) { + return CreateLiveAIStudioResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DeleteLiveAIStudioRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DeleteLiveAIStudioRequest.java new file mode 100644 index 0000000000..1c57a19070 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DeleteLiveAIStudioRequest.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.model.v20161101; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.live.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteLiveAIStudioRequest extends RpcAcsRequest { + + + private String studioId; + + private Long ownerId; + public DeleteLiveAIStudioRequest() { + super("live", "2016-11-01", "DeleteLiveAIStudio", "live"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getStudioId() { + return this.studioId; + } + + public void setStudioId(String studioId) { + this.studioId = studioId; + if(studioId != null){ + putQueryParameter("StudioId", studioId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteLiveAIStudioResponse.class; + } + +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DeleteLiveAIStudioResponse.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DeleteLiveAIStudioResponse.java new file mode 100644 index 0000000000..341d077a4c --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DeleteLiveAIStudioResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.model.v20161101; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.live.transform.v20161101.DeleteLiveAIStudioResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteLiveAIStudioResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteLiveAIStudioResponse getInstance(UnmarshallerContext context) { + return DeleteLiveAIStudioResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveAIStudioRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveAIStudioRequest.java new file mode 100644 index 0000000000..208be4603d --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveAIStudioRequest.java @@ -0,0 +1,108 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.model.v20161101; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.live.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeLiveAIStudioRequest extends RpcAcsRequest { + + + private Integer pageNumber; + + private Integer pageSize; + + private String studioId; + + private Long ownerId; + + private String studioName; + public DescribeLiveAIStudioRequest() { + super("live", "2016-11-01", "DescribeLiveAIStudio", "live"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getStudioId() { + return this.studioId; + } + + public void setStudioId(String studioId) { + this.studioId = studioId; + if(studioId != null){ + putQueryParameter("StudioId", studioId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getStudioName() { + return this.studioName; + } + + public void setStudioName(String studioName) { + this.studioName = studioName; + if(studioName != null){ + putQueryParameter("StudioName", studioName); + } + } + + @Override + public Class getResponseClass() { + return DescribeLiveAIStudioResponse.class; + } + +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveAIStudioResponse.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveAIStudioResponse.java new file mode 100644 index 0000000000..a096af1b2d --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveAIStudioResponse.java @@ -0,0 +1,235 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.model.v20161101; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.live.transform.v20161101.DescribeLiveAIStudioResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeLiveAIStudioResponse extends AcsResponse { + + private String requestId; + + private Integer total; + + private Integer pageNumber; + + private Integer pageSize; + + private List studioConfigs; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotal() { + return this.total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public List getStudioConfigs() { + return this.studioConfigs; + } + + public void setStudioConfigs(List studioConfigs) { + this.studioConfigs = studioConfigs; + } + + public static class SubtitleConfig { + + private String mediaType; + + private String mediaLayout; + + private String mediaResourceUrl; + + private String mediaResourceId; + + private String backgroundType; + + private String backgroundResourceUrl; + + private String backgroundResourceId; + + private String description; + + private String templateId; + + private String templateName; + + private String mattingLayout; + + private String mattingType; + + private String height; + + private String width; + + private List ruleIds; + + public String getMediaType() { + return this.mediaType; + } + + public void setMediaType(String mediaType) { + this.mediaType = mediaType; + } + + public String getMediaLayout() { + return this.mediaLayout; + } + + public void setMediaLayout(String mediaLayout) { + this.mediaLayout = mediaLayout; + } + + public String getMediaResourceUrl() { + return this.mediaResourceUrl; + } + + public void setMediaResourceUrl(String mediaResourceUrl) { + this.mediaResourceUrl = mediaResourceUrl; + } + + public String getMediaResourceId() { + return this.mediaResourceId; + } + + public void setMediaResourceId(String mediaResourceId) { + this.mediaResourceId = mediaResourceId; + } + + public String getBackgroundType() { + return this.backgroundType; + } + + public void setBackgroundType(String backgroundType) { + this.backgroundType = backgroundType; + } + + public String getBackgroundResourceUrl() { + return this.backgroundResourceUrl; + } + + public void setBackgroundResourceUrl(String backgroundResourceUrl) { + this.backgroundResourceUrl = backgroundResourceUrl; + } + + public String getBackgroundResourceId() { + return this.backgroundResourceId; + } + + public void setBackgroundResourceId(String backgroundResourceId) { + this.backgroundResourceId = backgroundResourceId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getTemplateId() { + return this.templateId; + } + + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + public String getTemplateName() { + return this.templateName; + } + + public void setTemplateName(String templateName) { + this.templateName = templateName; + } + + public String getMattingLayout() { + return this.mattingLayout; + } + + public void setMattingLayout(String mattingLayout) { + this.mattingLayout = mattingLayout; + } + + public String getMattingType() { + return this.mattingType; + } + + public void setMattingType(String mattingType) { + this.mattingType = mattingType; + } + + public String getHeight() { + return this.height; + } + + public void setHeight(String height) { + this.height = height; + } + + public String getWidth() { + return this.width; + } + + public void setWidth(String width) { + this.width = width; + } + + public List getRuleIds() { + return this.ruleIds; + } + + public void setRuleIds(List ruleIds) { + this.ruleIds = ruleIds; + } + } + + @Override + public DescribeLiveAIStudioResponse getInstance(UnmarshallerContext context) { + return DescribeLiveAIStudioResponseUnmarshaller.unmarshall(this, context); + } +} 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 98d3a4bbab..8c1e74fb81 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 String maxIdleTime; + private List multiStreamURL; private SingleSubParams singleSubParams; @@ -115,6 +117,14 @@ public void setRegion(String region) { this.region = region; } + public String getMaxIdleTime() { + return this.maxIdleTime; + } + + public void setMaxIdleTime(String maxIdleTime) { + this.maxIdleTime = maxIdleTime; + } + public List getMultiStreamURL() { return this.multiStreamURL; } diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ModifyLiveAIStudioRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ModifyLiveAIStudioRequest.java new file mode 100644 index 0000000000..e14763a5d3 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ModifyLiveAIStudioRequest.java @@ -0,0 +1,301 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.model.v20161101; + +import com.aliyuncs.RpcAcsRequest; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.live.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyLiveAIStudioRequest extends RpcAcsRequest { + + + private String backgroundResourceId; + + private String description; + + @SerializedName("mediaLayout") + private MediaLayout mediaLayout; + + private String backgroundType; + + private String mattingType; + + private String mediaResourceUrl; + + private Integer height; + + private String backgroundResourceUrl; + + private String mediaResourceId; + + @SerializedName("mattingLayout") + private MattingLayout mattingLayout; + + private Long ownerId; + + private String studioName; + + private Integer width; + + private String mediaType; + public ModifyLiveAIStudioRequest() { + super("live", "2016-11-01", "ModifyLiveAIStudio", "live"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getBackgroundResourceId() { + return this.backgroundResourceId; + } + + public void setBackgroundResourceId(String backgroundResourceId) { + this.backgroundResourceId = backgroundResourceId; + if(backgroundResourceId != null){ + putQueryParameter("BackgroundResourceId", backgroundResourceId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public MediaLayout getMediaLayout() { + return this.mediaLayout; + } + + public void setMediaLayout(MediaLayout mediaLayout) { + this.mediaLayout = mediaLayout; + if (mediaLayout != null) { + putQueryParameter("MediaLayout" , new Gson().toJson(mediaLayout)); + } + } + + public String getBackgroundType() { + return this.backgroundType; + } + + public void setBackgroundType(String backgroundType) { + this.backgroundType = backgroundType; + if(backgroundType != null){ + putQueryParameter("BackgroundType", backgroundType); + } + } + + public String getMattingType() { + return this.mattingType; + } + + public void setMattingType(String mattingType) { + this.mattingType = mattingType; + if(mattingType != null){ + putQueryParameter("MattingType", mattingType); + } + } + + public String getMediaResourceUrl() { + return this.mediaResourceUrl; + } + + public void setMediaResourceUrl(String mediaResourceUrl) { + this.mediaResourceUrl = mediaResourceUrl; + if(mediaResourceUrl != null){ + putQueryParameter("MediaResourceUrl", mediaResourceUrl); + } + } + + public Integer getHeight() { + return this.height; + } + + public void setHeight(Integer height) { + this.height = height; + if(height != null){ + putQueryParameter("Height", height.toString()); + } + } + + public String getBackgroundResourceUrl() { + return this.backgroundResourceUrl; + } + + public void setBackgroundResourceUrl(String backgroundResourceUrl) { + this.backgroundResourceUrl = backgroundResourceUrl; + if(backgroundResourceUrl != null){ + putQueryParameter("BackgroundResourceUrl", backgroundResourceUrl); + } + } + + public String getMediaResourceId() { + return this.mediaResourceId; + } + + public void setMediaResourceId(String mediaResourceId) { + this.mediaResourceId = mediaResourceId; + if(mediaResourceId != null){ + putQueryParameter("MediaResourceId", mediaResourceId); + } + } + + public MattingLayout getMattingLayout() { + return this.mattingLayout; + } + + public void setMattingLayout(MattingLayout mattingLayout) { + this.mattingLayout = mattingLayout; + if (mattingLayout != null) { + putQueryParameter("MattingLayout" , new Gson().toJson(mattingLayout)); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getStudioName() { + return this.studioName; + } + + public void setStudioName(String studioName) { + this.studioName = studioName; + if(studioName != null){ + putQueryParameter("StudioName", studioName); + } + } + + public Integer getWidth() { + return this.width; + } + + public void setWidth(Integer width) { + this.width = width; + if(width != null){ + putQueryParameter("Width", width.toString()); + } + } + + public String getMediaType() { + return this.mediaType; + } + + public void setMediaType(String mediaType) { + this.mediaType = mediaType; + if(mediaType != null){ + putQueryParameter("MediaType", mediaType); + } + } + + public static class MediaLayout { + + @SerializedName("PositionX") + private Float positionX; + + @SerializedName("PositionY") + private Float positionY; + + @SerializedName("HeightNormalized") + private Float heightNormalized; + + public Float getPositionX() { + return this.positionX; + } + + public void setPositionX(Float positionX) { + this.positionX = positionX; + } + + public Float getPositionY() { + return this.positionY; + } + + public void setPositionY(Float positionY) { + this.positionY = positionY; + } + + public Float getHeightNormalized() { + return this.heightNormalized; + } + + public void setHeightNormalized(Float heightNormalized) { + this.heightNormalized = heightNormalized; + } + } + + public static class MattingLayout { + + @SerializedName("PositionX") + private Float positionX; + + @SerializedName("PositionY") + private Float positionY; + + @SerializedName("HeightNormalized") + private Float heightNormalized; + + public Float getPositionX() { + return this.positionX; + } + + public void setPositionX(Float positionX) { + this.positionX = positionX; + } + + public Float getPositionY() { + return this.positionY; + } + + public void setPositionY(Float positionY) { + this.positionY = positionY; + } + + public Float getHeightNormalized() { + return this.heightNormalized; + } + + public void setHeightNormalized(Float heightNormalized) { + this.heightNormalized = heightNormalized; + } + } + + @Override + public Class getResponseClass() { + return ModifyLiveAIStudioResponse.class; + } + +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ModifyLiveAIStudioResponse.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ModifyLiveAIStudioResponse.java new file mode 100644 index 0000000000..e48d894c58 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ModifyLiveAIStudioResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.model.v20161101; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.live.transform.v20161101.ModifyLiveAIStudioResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyLiveAIStudioResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyLiveAIStudioResponse getInstance(UnmarshallerContext context) { + return ModifyLiveAIStudioResponseUnmarshaller.unmarshall(this, context); + } +} 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 a88c91fd31..a4f72294e5 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 @@ -38,6 +38,8 @@ public class StartLiveMPUTaskRequest extends RpcAcsRequest multiStreamURL; + private String maxIdleTime; + @SerializedName("seiParams") private SeiParams seiParams; @@ -104,6 +106,17 @@ public void setMultiStreamURL(List multiStreamURL) { } } + public String getMaxIdleTime() { + return this.maxIdleTime; + } + + public void setMaxIdleTime(String maxIdleTime) { + this.maxIdleTime = maxIdleTime; + if(maxIdleTime != null){ + putQueryParameter("MaxIdleTime", maxIdleTime); + } + } + public SeiParams getSeiParams() { return this.seiParams; } diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/CreateLiveAIStudioResponseUnmarshaller.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/CreateLiveAIStudioResponseUnmarshaller.java new file mode 100644 index 0000000000..bcf112e266 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/CreateLiveAIStudioResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.transform.v20161101; + +import com.aliyuncs.live.model.v20161101.CreateLiveAIStudioResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateLiveAIStudioResponseUnmarshaller { + + public static CreateLiveAIStudioResponse unmarshall(CreateLiveAIStudioResponse createLiveAIStudioResponse, UnmarshallerContext _ctx) { + + createLiveAIStudioResponse.setRequestId(_ctx.stringValue("CreateLiveAIStudioResponse.RequestId")); + createLiveAIStudioResponse.setStudioId(_ctx.stringValue("CreateLiveAIStudioResponse.StudioId")); + + return createLiveAIStudioResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/DeleteLiveAIStudioResponseUnmarshaller.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/DeleteLiveAIStudioResponseUnmarshaller.java new file mode 100644 index 0000000000..4ce3eb7f81 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/DeleteLiveAIStudioResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.transform.v20161101; + +import com.aliyuncs.live.model.v20161101.DeleteLiveAIStudioResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteLiveAIStudioResponseUnmarshaller { + + public static DeleteLiveAIStudioResponse unmarshall(DeleteLiveAIStudioResponse deleteLiveAIStudioResponse, UnmarshallerContext _ctx) { + + deleteLiveAIStudioResponse.setRequestId(_ctx.stringValue("DeleteLiveAIStudioResponse.RequestId")); + + return deleteLiveAIStudioResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/DescribeLiveAIStudioResponseUnmarshaller.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/DescribeLiveAIStudioResponseUnmarshaller.java new file mode 100644 index 0000000000..ce611121c5 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/DescribeLiveAIStudioResponseUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.transform.v20161101; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.live.model.v20161101.DescribeLiveAIStudioResponse; +import com.aliyuncs.live.model.v20161101.DescribeLiveAIStudioResponse.SubtitleConfig; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeLiveAIStudioResponseUnmarshaller { + + public static DescribeLiveAIStudioResponse unmarshall(DescribeLiveAIStudioResponse describeLiveAIStudioResponse, UnmarshallerContext _ctx) { + + describeLiveAIStudioResponse.setRequestId(_ctx.stringValue("DescribeLiveAIStudioResponse.RequestId")); + describeLiveAIStudioResponse.setTotal(_ctx.integerValue("DescribeLiveAIStudioResponse.Total")); + describeLiveAIStudioResponse.setPageNumber(_ctx.integerValue("DescribeLiveAIStudioResponse.PageNumber")); + describeLiveAIStudioResponse.setPageSize(_ctx.integerValue("DescribeLiveAIStudioResponse.PageSize")); + + List studioConfigs = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeLiveAIStudioResponse.StudioConfigs.Length"); i++) { + SubtitleConfig subtitleConfig = new SubtitleConfig(); + subtitleConfig.setMediaType(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].MediaType")); + subtitleConfig.setMediaLayout(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].MediaLayout")); + subtitleConfig.setMediaResourceUrl(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].MediaResourceUrl")); + subtitleConfig.setMediaResourceId(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].MediaResourceId")); + subtitleConfig.setBackgroundType(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].BackgroundType")); + subtitleConfig.setBackgroundResourceUrl(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].BackgroundResourceUrl")); + subtitleConfig.setBackgroundResourceId(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].BackgroundResourceId")); + subtitleConfig.setDescription(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].Description")); + subtitleConfig.setTemplateId(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].TemplateId")); + subtitleConfig.setTemplateName(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].TemplateName")); + subtitleConfig.setMattingLayout(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].MattingLayout")); + subtitleConfig.setMattingType(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].MattingType")); + subtitleConfig.setHeight(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].Height")); + subtitleConfig.setWidth(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].Width")); + + List ruleIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].RuleIds.Length"); j++) { + ruleIds.add(_ctx.stringValue("DescribeLiveAIStudioResponse.StudioConfigs["+ i +"].RuleIds["+ j +"]")); + } + subtitleConfig.setRuleIds(ruleIds); + + studioConfigs.add(subtitleConfig); + } + describeLiveAIStudioResponse.setStudioConfigs(studioConfigs); + + return describeLiveAIStudioResponse; + } +} \ No newline at end of file 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 ab5ed379f2..9dfb5493b1 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 @@ -50,6 +50,7 @@ public static ListRtcMPUTaskDetailResponse unmarshall(ListRtcMPUTaskDetailRespon mpuTask.setMixMode(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].MixMode")); mpuTask.setStreamURL(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].StreamURL")); mpuTask.setRegion(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].Region")); + mpuTask.setMaxIdleTime(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].MaxIdleTime")); SingleSubParams singleSubParams = new SingleSubParams(); singleSubParams.setSourceType(_ctx.stringValue("ListRtcMPUTaskDetailResponse.MPUTasks["+ i +"].SingleSubParams.SourceType")); diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ModifyLiveAIStudioResponseUnmarshaller.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ModifyLiveAIStudioResponseUnmarshaller.java new file mode 100644 index 0000000000..f0e39ffe21 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ModifyLiveAIStudioResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.live.transform.v20161101; + +import com.aliyuncs.live.model.v20161101.ModifyLiveAIStudioResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyLiveAIStudioResponseUnmarshaller { + + public static ModifyLiveAIStudioResponse unmarshall(ModifyLiveAIStudioResponse modifyLiveAIStudioResponse, UnmarshallerContext _ctx) { + + modifyLiveAIStudioResponse.setRequestId(_ctx.stringValue("ModifyLiveAIStudioResponse.RequestId")); + + return modifyLiveAIStudioResponse; + } +} \ No newline at end of file