From cd591bf649a13ee3f475d1f385428461c6456a20 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 13 Dec 2023 11:45:22 +0000 Subject: [PATCH] Update to support new apis. --- aliyun-java-sdk-live/ChangeLog.txt | 3 + aliyun-java-sdk-live/pom.xml | 2 +- .../DescribeLiveDomainEdgeLogRequest.java | 119 ++++++++++++ .../DescribeLiveDomainEdgeLogResponse.java | 181 ++++++++++++++++++ .../v20161101/ListEventSubEventRequest.java | 121 ++++++++++++ .../v20161101/ListEventSubEventResponse.java | 160 ++++++++++++++++ .../model/v20161101/ListEventSubRequest.java | 56 ++++++ .../model/v20161101/ListEventSubResponse.java | 140 ++++++++++++++ .../SendLiveMessageGroupRequest.java | 107 +++++++---- .../v20161101/UpdateEventSubRequest.java | 126 ++++++++++++ .../v20161101/UpdateEventSubResponse.java | 46 +++++ ...LiveDomainEdgeLogResponseUnmarshaller.java | 64 +++++++ ...ListEventSubEventResponseUnmarshaller.java | 51 +++++ .../ListEventSubResponseUnmarshaller.java | 59 ++++++ .../UpdateEventSubResponseUnmarshaller.java | 29 +++ 15 files changed, 1229 insertions(+), 35 deletions(-) create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveDomainEdgeLogRequest.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveDomainEdgeLogResponse.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubEventRequest.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubEventResponse.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubRequest.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubResponse.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateEventSubRequest.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateEventSubResponse.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/DescribeLiveDomainEdgeLogResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListEventSubEventResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListEventSubResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/UpdateEventSubResponseUnmarshaller.java diff --git a/aliyun-java-sdk-live/ChangeLog.txt b/aliyun-java-sdk-live/ChangeLog.txt index c2654b8baa..b243697d44 100644 --- a/aliyun-java-sdk-live/ChangeLog.txt +++ b/aliyun-java-sdk-live/ChangeLog.txt @@ -1,3 +1,6 @@ +2023-12-13 Version: 3.9.42 +- Update to support new apis. + 2023-11-22 Version: 3.9.41 - Update to support new apis. diff --git a/aliyun-java-sdk-live/pom.xml b/aliyun-java-sdk-live/pom.xml index 17cbd326a1..72360d5d1e 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.41 + 3.9.42 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/DescribeLiveDomainEdgeLogRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveDomainEdgeLogRequest.java new file mode 100644 index 0000000000..eb8bfedb1c --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveDomainEdgeLogRequest.java @@ -0,0 +1,119 @@ +/* + * 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.MethodType; +import com.aliyuncs.live.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeLiveDomainEdgeLogRequest extends RpcAcsRequest { + + + private String startTime; + + private Long pageNumber; + + private Long pageSize; + + private String domainName; + + private String endTime; + + private Long ownerId; + public DescribeLiveDomainEdgeLogRequest() { + super("live", "2016-11-01", "DescribeLiveDomainEdgeLog", "live"); + 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 getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getDomainName() { + return this.domainName; + } + + public void setDomainName(String domainName) { + this.domainName = domainName; + if(domainName != null){ + putQueryParameter("DomainName", domainName); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + 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 DescribeLiveDomainEdgeLogResponse.class; + } + +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveDomainEdgeLogResponse.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveDomainEdgeLogResponse.java new file mode 100644 index 0000000000..74e4462069 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/DescribeLiveDomainEdgeLogResponse.java @@ -0,0 +1,181 @@ +/* + * 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.DescribeLiveDomainEdgeLogResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeLiveDomainEdgeLogResponse extends AcsResponse { + + private String domainName; + + private String requestId; + + private List domainLogDetails; + + public String getDomainName() { + return this.domainName; + } + + public void setDomainName(String domainName) { + this.domainName = domainName; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getDomainLogDetails() { + return this.domainLogDetails; + } + + public void setDomainLogDetails(List domainLogDetails) { + this.domainLogDetails = domainLogDetails; + } + + public static class DomainLogDetail { + + private Long logCount; + + private List logInfos; + + private PageInfos pageInfos; + + public Long getLogCount() { + return this.logCount; + } + + public void setLogCount(Long logCount) { + this.logCount = logCount; + } + + public List getLogInfos() { + return this.logInfos; + } + + public void setLogInfos(List logInfos) { + this.logInfos = logInfos; + } + + public PageInfos getPageInfos() { + return this.pageInfos; + } + + public void setPageInfos(PageInfos pageInfos) { + this.pageInfos = pageInfos; + } + + public static class LogInfoDetail { + + private String endTime; + + private Long logSize; + + private String startTime; + + private String logName; + + private String logPath; + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public Long getLogSize() { + return this.logSize; + } + + public void setLogSize(Long logSize) { + this.logSize = logSize; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getLogName() { + return this.logName; + } + + public void setLogName(String logName) { + this.logName = logName; + } + + public String getLogPath() { + return this.logPath; + } + + public void setLogPath(String logPath) { + this.logPath = logPath; + } + } + + public static class PageInfos { + + private Long pageIndex; + + private Long pageSize; + + private Long total; + + public Long getPageIndex() { + return this.pageIndex; + } + + public void setPageIndex(Long pageIndex) { + this.pageIndex = pageIndex; + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public Long getTotal() { + return this.total; + } + + public void setTotal(Long total) { + this.total = total; + } + } + } + + @Override + public DescribeLiveDomainEdgeLogResponse getInstance(UnmarshallerContext context) { + return DescribeLiveDomainEdgeLogResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubEventRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubEventRequest.java new file mode 100644 index 0000000000..6f15eb8ffa --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubEventRequest.java @@ -0,0 +1,121 @@ +/* + * 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 ListEventSubEventRequest extends RpcAcsRequest { + + + private String subscribeId; + + private Long endTime; + + private Long startTime; + + private Long pageNo; + + private String appId; + + private Long pageSize; + public ListEventSubEventRequest() { + super("live", "2016-11-01", "ListEventSubEvent", "live"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.GET); + 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 getSubscribeId() { + return this.subscribeId; + } + + public void setSubscribeId(String subscribeId) { + this.subscribeId = subscribeId; + if(subscribeId != null){ + putQueryParameter("SubscribeId", subscribeId); + } + } + + public Long getEndTime() { + return this.endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime.toString()); + } + } + + public Long getStartTime() { + return this.startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime.toString()); + } + } + + public Long getPageNo() { + return this.pageNo; + } + + public void setPageNo(Long pageNo) { + this.pageNo = pageNo; + if(pageNo != null){ + putQueryParameter("PageNo", pageNo.toString()); + } + } + + public String getAppId() { + return this.appId; + } + + public void setAppId(String appId) { + this.appId = appId; + if(appId != null){ + putQueryParameter("AppId", appId); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + @Override + public Class getResponseClass() { + return ListEventSubEventResponse.class; + } + +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubEventResponse.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubEventResponse.java new file mode 100644 index 0000000000..2cad5354e1 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubEventResponse.java @@ -0,0 +1,160 @@ +/* + * 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.ListEventSubEventResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListEventSubEventResponse extends AcsResponse { + + private String requestId; + + private Long count; + + private Boolean hasMore; + + private List logs; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getCount() { + return this.count; + } + + public void setCount(Long count) { + this.count = count; + } + + public Boolean getHasMore() { + return this.hasMore; + } + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + public List getLogs() { + return this.logs; + } + + public void setLogs(List logs) { + this.logs = logs; + } + + public static class LogsItem { + + private String appId; + + private String subId; + + private String messageId; + + private String data; + + private Integer cost; + + private String time; + + private String url; + + private Integer code; + + public String getAppId() { + return this.appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getSubId() { + return this.subId; + } + + public void setSubId(String subId) { + this.subId = subId; + } + + public String getMessageId() { + return this.messageId; + } + + public void setMessageId(String messageId) { + this.messageId = messageId; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public Integer getCost() { + return this.cost; + } + + public void setCost(Integer cost) { + this.cost = cost; + } + + public String getTime() { + return this.time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getUrl() { + return this.url; + } + + public void setUrl(String url) { + this.url = url; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + } + + @Override + public ListEventSubEventResponse getInstance(UnmarshallerContext context) { + return ListEventSubEventResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubRequest.java new file mode 100644 index 0000000000..783ba5979c --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubRequest.java @@ -0,0 +1,56 @@ +/* + * 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 ListEventSubRequest extends RpcAcsRequest { + + + private String appId; + public ListEventSubRequest() { + super("live", "2016-11-01", "ListEventSub", "live"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.GET); + 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 getAppId() { + return this.appId; + } + + public void setAppId(String appId) { + this.appId = appId; + if(appId != null){ + putQueryParameter("AppId", appId); + } + } + + @Override + public Class getResponseClass() { + return ListEventSubResponse.class; + } + +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubResponse.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubResponse.java new file mode 100644 index 0000000000..f60894d850 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/ListEventSubResponse.java @@ -0,0 +1,140 @@ +/* + * 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.ListEventSubResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListEventSubResponse extends AcsResponse { + + private String requestId; + + private List subscribers; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getSubscribers() { + return this.subscribers; + } + + public void setSubscribers(List subscribers) { + this.subscribers = subscribers; + } + + public static class Data { + + private String subId; + + private String channelId; + + private String callbackUrl; + + private String createTime; + + private String modifyTime; + + private Integer roles; + + private List events; + + private List users; + + public String getSubId() { + return this.subId; + } + + public void setSubId(String subId) { + this.subId = subId; + } + + public String getChannelId() { + return this.channelId; + } + + public void setChannelId(String channelId) { + this.channelId = channelId; + } + + public String getCallbackUrl() { + return this.callbackUrl; + } + + public void setCallbackUrl(String callbackUrl) { + this.callbackUrl = callbackUrl; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getModifyTime() { + return this.modifyTime; + } + + public void setModifyTime(String modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getRoles() { + return this.roles; + } + + public void setRoles(Integer roles) { + this.roles = roles; + } + + public List getEvents() { + return this.events; + } + + public void setEvents(List events) { + this.events = events; + } + + public List getUsers() { + return this.users; + } + + public void setUsers(List users) { + this.users = users; + } + } + + @Override + public ListEventSubResponse getInstance(UnmarshallerContext context) { + return ListEventSubResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/SendLiveMessageGroupRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/SendLiveMessageGroupRequest.java index 42c74a8212..6227f65ced 100644 --- a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/SendLiveMessageGroupRequest.java +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/SendLiveMessageGroupRequest.java @@ -26,21 +26,27 @@ public class SendLiveMessageGroupRequest extends RpcAcsRequest { + private String senderMetaInfo; + + private String body; + + private Long staticsIncrease; + + private Long msgType; + + private Boolean noStorage; + private String groupId; - private String senderMetaInfo; + private Long weight; private String dataCenter; private String msgTid; - private String body; - private String senderId; - private String appId; - - private Long msgType; + private String appId; public SendLiveMessageGroupRequest() { super("live", "2016-11-01", "SendLiveMessageGroup", "live"); setProtocol(ProtocolType.HTTPS); @@ -51,6 +57,61 @@ public SendLiveMessageGroupRequest() { } catch (Exception e) {} } + public String getSenderMetaInfo() { + return this.senderMetaInfo; + } + + public void setSenderMetaInfo(String senderMetaInfo) { + this.senderMetaInfo = senderMetaInfo; + if(senderMetaInfo != null){ + putQueryParameter("SenderMetaInfo", senderMetaInfo); + } + } + + public String getBody() { + return this.body; + } + + public void setBody(String body) { + this.body = body; + if(body != null){ + putQueryParameter("Body", body); + } + } + + public Long getStaticsIncrease() { + return this.staticsIncrease; + } + + public void setStaticsIncrease(Long staticsIncrease) { + this.staticsIncrease = staticsIncrease; + if(staticsIncrease != null){ + putQueryParameter("StaticsIncrease", staticsIncrease.toString()); + } + } + + public Long getMsgType() { + return this.msgType; + } + + public void setMsgType(Long msgType) { + this.msgType = msgType; + if(msgType != null){ + putQueryParameter("MsgType", msgType.toString()); + } + } + + public Boolean getNoStorage() { + return this.noStorage; + } + + public void setNoStorage(Boolean noStorage) { + this.noStorage = noStorage; + if(noStorage != null){ + putQueryParameter("NoStorage", noStorage.toString()); + } + } + public String getGroupId() { return this.groupId; } @@ -62,14 +123,14 @@ public void setGroupId(String groupId) { } } - public String getSenderMetaInfo() { - return this.senderMetaInfo; + public Long getWeight() { + return this.weight; } - public void setSenderMetaInfo(String senderMetaInfo) { - this.senderMetaInfo = senderMetaInfo; - if(senderMetaInfo != null){ - putQueryParameter("SenderMetaInfo", senderMetaInfo); + public void setWeight(Long weight) { + this.weight = weight; + if(weight != null){ + putQueryParameter("Weight", weight.toString()); } } @@ -95,17 +156,6 @@ public void setMsgTid(String msgTid) { } } - public String getBody() { - return this.body; - } - - public void setBody(String body) { - this.body = body; - if(body != null){ - putQueryParameter("Body", body); - } - } - public String getSenderId() { return this.senderId; } @@ -126,17 +176,6 @@ public void setAppId(String appId) { if(appId != null){ putQueryParameter("AppId", appId); } - } - - public Long getMsgType() { - return this.msgType; - } - - public void setMsgType(Long msgType) { - this.msgType = msgType; - if(msgType != null){ - putQueryParameter("MsgType", msgType.toString()); - } } @Override diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateEventSubRequest.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateEventSubRequest.java new file mode 100644 index 0000000000..75b59b8278 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateEventSubRequest.java @@ -0,0 +1,126 @@ +/* + * 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 java.util.List; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.live.Endpoint; + +/** + * @author auto create + * @version + */ +public class UpdateEventSubRequest extends RpcAcsRequest { + + + private String subscribeId; + + private List userss; + + private String appId; + + private String callbackUrl; + + private String channelId; + + private List eventss; + public UpdateEventSubRequest() { + super("live", "2016-11-01", "UpdateEventSub", "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 getSubscribeId() { + return this.subscribeId; + } + + public void setSubscribeId(String subscribeId) { + this.subscribeId = subscribeId; + if(subscribeId != null){ + putQueryParameter("SubscribeId", subscribeId); + } + } + + public List getUserss() { + return this.userss; + } + + public void setUserss(List userss) { + this.userss = userss; + if (userss != null) { + for (int i = 0; i < userss.size(); i++) { + putQueryParameter("Users." + (i + 1) , userss.get(i)); + } + } + } + + public String getAppId() { + return this.appId; + } + + public void setAppId(String appId) { + this.appId = appId; + if(appId != null){ + putQueryParameter("AppId", appId); + } + } + + public String getCallbackUrl() { + return this.callbackUrl; + } + + public void setCallbackUrl(String callbackUrl) { + this.callbackUrl = callbackUrl; + if(callbackUrl != null){ + putQueryParameter("CallbackUrl", callbackUrl); + } + } + + public String getChannelId() { + return this.channelId; + } + + public void setChannelId(String channelId) { + this.channelId = channelId; + if(channelId != null){ + putQueryParameter("ChannelId", channelId); + } + } + + public List getEventss() { + return this.eventss; + } + + public void setEventss(List eventss) { + this.eventss = eventss; + if (eventss != null) { + for (int i = 0; i < eventss.size(); i++) { + putQueryParameter("Events." + (i + 1) , eventss.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return UpdateEventSubResponse.class; + } + +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateEventSubResponse.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateEventSubResponse.java new file mode 100644 index 0000000000..6a5e6b02df --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/UpdateEventSubResponse.java @@ -0,0 +1,46 @@ +/* + * 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.UpdateEventSubResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UpdateEventSubResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public UpdateEventSubResponse getInstance(UnmarshallerContext context) { + return UpdateEventSubResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/DescribeLiveDomainEdgeLogResponseUnmarshaller.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/DescribeLiveDomainEdgeLogResponseUnmarshaller.java new file mode 100644 index 0000000000..6ec22ccd5e --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/DescribeLiveDomainEdgeLogResponseUnmarshaller.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.DescribeLiveDomainEdgeLogResponse; +import com.aliyuncs.live.model.v20161101.DescribeLiveDomainEdgeLogResponse.DomainLogDetail; +import com.aliyuncs.live.model.v20161101.DescribeLiveDomainEdgeLogResponse.DomainLogDetail.LogInfoDetail; +import com.aliyuncs.live.model.v20161101.DescribeLiveDomainEdgeLogResponse.DomainLogDetail.PageInfos; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeLiveDomainEdgeLogResponseUnmarshaller { + + public static DescribeLiveDomainEdgeLogResponse unmarshall(DescribeLiveDomainEdgeLogResponse describeLiveDomainEdgeLogResponse, UnmarshallerContext _ctx) { + + describeLiveDomainEdgeLogResponse.setRequestId(_ctx.stringValue("DescribeLiveDomainEdgeLogResponse.RequestId")); + describeLiveDomainEdgeLogResponse.setDomainName(_ctx.stringValue("DescribeLiveDomainEdgeLogResponse.DomainName")); + + List domainLogDetails = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails.Length"); i++) { + DomainLogDetail domainLogDetail = new DomainLogDetail(); + domainLogDetail.setLogCount(_ctx.longValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails["+ i +"].LogCount")); + + PageInfos pageInfos = new PageInfos(); + pageInfos.setPageIndex(_ctx.longValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails["+ i +"].PageInfos.PageIndex")); + pageInfos.setPageSize(_ctx.longValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails["+ i +"].PageInfos.PageSize")); + pageInfos.setTotal(_ctx.longValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails["+ i +"].PageInfos.Total")); + domainLogDetail.setPageInfos(pageInfos); + + List logInfos = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails["+ i +"].LogInfos.Length"); j++) { + LogInfoDetail logInfoDetail = new LogInfoDetail(); + logInfoDetail.setEndTime(_ctx.stringValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails["+ i +"].LogInfos["+ j +"].EndTime")); + logInfoDetail.setLogSize(_ctx.longValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails["+ i +"].LogInfos["+ j +"].LogSize")); + logInfoDetail.setStartTime(_ctx.stringValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails["+ i +"].LogInfos["+ j +"].StartTime")); + logInfoDetail.setLogName(_ctx.stringValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails["+ i +"].LogInfos["+ j +"].LogName")); + logInfoDetail.setLogPath(_ctx.stringValue("DescribeLiveDomainEdgeLogResponse.DomainLogDetails["+ i +"].LogInfos["+ j +"].LogPath")); + + logInfos.add(logInfoDetail); + } + domainLogDetail.setLogInfos(logInfos); + + domainLogDetails.add(domainLogDetail); + } + describeLiveDomainEdgeLogResponse.setDomainLogDetails(domainLogDetails); + + return describeLiveDomainEdgeLogResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListEventSubEventResponseUnmarshaller.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListEventSubEventResponseUnmarshaller.java new file mode 100644 index 0000000000..a8fc7bb4a8 --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListEventSubEventResponseUnmarshaller.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.transform.v20161101; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.live.model.v20161101.ListEventSubEventResponse; +import com.aliyuncs.live.model.v20161101.ListEventSubEventResponse.LogsItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListEventSubEventResponseUnmarshaller { + + public static ListEventSubEventResponse unmarshall(ListEventSubEventResponse listEventSubEventResponse, UnmarshallerContext _ctx) { + + listEventSubEventResponse.setRequestId(_ctx.stringValue("ListEventSubEventResponse.RequestId")); + listEventSubEventResponse.setCount(_ctx.longValue("ListEventSubEventResponse.Count")); + listEventSubEventResponse.setHasMore(_ctx.booleanValue("ListEventSubEventResponse.HasMore")); + + List logs = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListEventSubEventResponse.Logs.Length"); i++) { + LogsItem logsItem = new LogsItem(); + logsItem.setAppId(_ctx.stringValue("ListEventSubEventResponse.Logs["+ i +"].AppId")); + logsItem.setSubId(_ctx.stringValue("ListEventSubEventResponse.Logs["+ i +"].SubId")); + logsItem.setMessageId(_ctx.stringValue("ListEventSubEventResponse.Logs["+ i +"].MessageId")); + logsItem.setData(_ctx.stringValue("ListEventSubEventResponse.Logs["+ i +"].Data")); + logsItem.setCost(_ctx.integerValue("ListEventSubEventResponse.Logs["+ i +"].Cost")); + logsItem.setTime(_ctx.stringValue("ListEventSubEventResponse.Logs["+ i +"].Time")); + logsItem.setUrl(_ctx.stringValue("ListEventSubEventResponse.Logs["+ i +"].Url")); + logsItem.setCode(_ctx.integerValue("ListEventSubEventResponse.Logs["+ i +"].Code")); + + logs.add(logsItem); + } + listEventSubEventResponse.setLogs(logs); + + return listEventSubEventResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListEventSubResponseUnmarshaller.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListEventSubResponseUnmarshaller.java new file mode 100644 index 0000000000..f30489742b --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/ListEventSubResponseUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * 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.ListEventSubResponse; +import com.aliyuncs.live.model.v20161101.ListEventSubResponse.Data; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListEventSubResponseUnmarshaller { + + public static ListEventSubResponse unmarshall(ListEventSubResponse listEventSubResponse, UnmarshallerContext _ctx) { + + listEventSubResponse.setRequestId(_ctx.stringValue("ListEventSubResponse.RequestId")); + + List subscribers = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListEventSubResponse.Subscribers.Length"); i++) { + Data data = new Data(); + data.setSubId(_ctx.stringValue("ListEventSubResponse.Subscribers["+ i +"].SubId")); + data.setChannelId(_ctx.stringValue("ListEventSubResponse.Subscribers["+ i +"].ChannelId")); + data.setCallbackUrl(_ctx.stringValue("ListEventSubResponse.Subscribers["+ i +"].CallbackUrl")); + data.setCreateTime(_ctx.stringValue("ListEventSubResponse.Subscribers["+ i +"].CreateTime")); + data.setModifyTime(_ctx.stringValue("ListEventSubResponse.Subscribers["+ i +"].ModifyTime")); + data.setRoles(_ctx.integerValue("ListEventSubResponse.Subscribers["+ i +"].Roles")); + + List events = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("ListEventSubResponse.Subscribers["+ i +"].Events.Length"); j++) { + events.add(_ctx.stringValue("ListEventSubResponse.Subscribers["+ i +"].Events["+ j +"]")); + } + data.setEvents(events); + + List users = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("ListEventSubResponse.Subscribers["+ i +"].Users.Length"); j++) { + users.add(_ctx.stringValue("ListEventSubResponse.Subscribers["+ i +"].Users["+ j +"]")); + } + data.setUsers(users); + + subscribers.add(data); + } + listEventSubResponse.setSubscribers(subscribers); + + return listEventSubResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/UpdateEventSubResponseUnmarshaller.java b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/UpdateEventSubResponseUnmarshaller.java new file mode 100644 index 0000000000..f73b40e58a --- /dev/null +++ b/aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/transform/v20161101/UpdateEventSubResponseUnmarshaller.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.UpdateEventSubResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UpdateEventSubResponseUnmarshaller { + + public static UpdateEventSubResponse unmarshall(UpdateEventSubResponse updateEventSubResponse, UnmarshallerContext _ctx) { + + updateEventSubResponse.setRequestId(_ctx.stringValue("UpdateEventSubResponse.RequestId")); + + return updateEventSubResponse; + } +} \ No newline at end of file