diff --git a/aliyun-java-sdk-linkvisual/ChangeLog.txt b/aliyun-java-sdk-linkvisual/ChangeLog.txt index 2cb37e2d01..57690e6ae1 100644 --- a/aliyun-java-sdk-linkvisual/ChangeLog.txt +++ b/aliyun-java-sdk-linkvisual/ChangeLog.txt @@ -1,3 +1,6 @@ +2023-11-16 Version: 1.5.17 +- 新增按时间下载本地录像接口. + 2023-10-30 Version: 1.5.16 - 新增按时间下载云存录像接口. diff --git a/aliyun-java-sdk-linkvisual/pom.xml b/aliyun-java-sdk-linkvisual/pom.xml index 80bd9a3435..d1d195a0ff 100644 --- a/aliyun-java-sdk-linkvisual/pom.xml +++ b/aliyun-java-sdk-linkvisual/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-linkvisual jar - 1.5.16 + 1.5.17 aliyun-java-sdk-linkvisual http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateLocalRecordDownloadByTimeJobRequest.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateLocalRecordDownloadByTimeJobRequest.java new file mode 100644 index 0000000000..c07d15bc45 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateLocalRecordDownloadByTimeJobRequest.java @@ -0,0 +1,132 @@ +/* + * 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.linkvisual.model.v20180120; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.linkvisual.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateLocalRecordDownloadByTimeJobRequest extends RpcAcsRequest { + + + private Float speed; + + private String iotId; + + private String iotInstanceId; + + private Integer endTime; + + private Integer beginTime; + + private String productKey; + + private String deviceName; + public CreateLocalRecordDownloadByTimeJobRequest() { + super("Linkvisual", "2018-01-20", "CreateLocalRecordDownloadByTimeJob", "Linkvisual"); + 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 Float getSpeed() { + return this.speed; + } + + public void setSpeed(Float speed) { + this.speed = speed; + if(speed != null){ + putQueryParameter("Speed", speed.toString()); + } + } + + public String getIotId() { + return this.iotId; + } + + public void setIotId(String iotId) { + this.iotId = iotId; + if(iotId != null){ + putQueryParameter("IotId", iotId); + } + } + + public String getIotInstanceId() { + return this.iotInstanceId; + } + + public void setIotInstanceId(String iotInstanceId) { + this.iotInstanceId = iotInstanceId; + if(iotInstanceId != null){ + putQueryParameter("IotInstanceId", iotInstanceId); + } + } + + public Integer getEndTime() { + return this.endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime.toString()); + } + } + + public Integer getBeginTime() { + return this.beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + if(beginTime != null){ + putQueryParameter("BeginTime", beginTime.toString()); + } + } + + public String getProductKey() { + return this.productKey; + } + + public void setProductKey(String productKey) { + this.productKey = productKey; + if(productKey != null){ + putQueryParameter("ProductKey", productKey); + } + } + + public String getDeviceName() { + return this.deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + if(deviceName != null){ + putQueryParameter("DeviceName", deviceName); + } + } + + @Override + public Class getResponseClass() { + return CreateLocalRecordDownloadByTimeJobResponse.class; + } + +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateLocalRecordDownloadByTimeJobResponse.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateLocalRecordDownloadByTimeJobResponse.java new file mode 100644 index 0000000000..e7e4081147 --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/CreateLocalRecordDownloadByTimeJobResponse.java @@ -0,0 +1,94 @@ +/* + * 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.linkvisual.model.v20180120; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.linkvisual.transform.v20180120.CreateLocalRecordDownloadByTimeJobResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateLocalRecordDownloadByTimeJobResponse extends AcsResponse { + + private String code; + + private String errorMessage; + + private String requestId; + + private Boolean success; + + private Data data; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String jobId; + + public String getJobId() { + return this.jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + } + + @Override + public CreateLocalRecordDownloadByTimeJobResponse getInstance(UnmarshallerContext context) { + return CreateLocalRecordDownloadByTimeJobResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRecordResponse.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRecordResponse.java index fbdaa8daad..151ed28fdb 100644 --- a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRecordResponse.java +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/model/v20180120/QueryRecordResponse.java @@ -113,6 +113,8 @@ public static class ListItem { private String endTime; + private Integer eventType; + private Integer recordType; private Integer streamType; @@ -141,6 +143,14 @@ public void setEndTime(String endTime) { this.endTime = endTime; } + public Integer getEventType() { + return this.eventType; + } + + public void setEventType(Integer eventType) { + this.eventType = eventType; + } + public Integer getRecordType() { return this.recordType; } diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/CreateLocalRecordDownloadByTimeJobResponseUnmarshaller.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/CreateLocalRecordDownloadByTimeJobResponseUnmarshaller.java new file mode 100644 index 0000000000..582e36d14d --- /dev/null +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/CreateLocalRecordDownloadByTimeJobResponseUnmarshaller.java @@ -0,0 +1,37 @@ +/* + * 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.linkvisual.transform.v20180120; + +import com.aliyuncs.linkvisual.model.v20180120.CreateLocalRecordDownloadByTimeJobResponse; +import com.aliyuncs.linkvisual.model.v20180120.CreateLocalRecordDownloadByTimeJobResponse.Data; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateLocalRecordDownloadByTimeJobResponseUnmarshaller { + + public static CreateLocalRecordDownloadByTimeJobResponse unmarshall(CreateLocalRecordDownloadByTimeJobResponse createLocalRecordDownloadByTimeJobResponse, UnmarshallerContext _ctx) { + + createLocalRecordDownloadByTimeJobResponse.setRequestId(_ctx.stringValue("CreateLocalRecordDownloadByTimeJobResponse.RequestId")); + createLocalRecordDownloadByTimeJobResponse.setCode(_ctx.stringValue("CreateLocalRecordDownloadByTimeJobResponse.Code")); + createLocalRecordDownloadByTimeJobResponse.setErrorMessage(_ctx.stringValue("CreateLocalRecordDownloadByTimeJobResponse.ErrorMessage")); + createLocalRecordDownloadByTimeJobResponse.setSuccess(_ctx.booleanValue("CreateLocalRecordDownloadByTimeJobResponse.Success")); + + Data data = new Data(); + data.setJobId(_ctx.stringValue("CreateLocalRecordDownloadByTimeJobResponse.Data.JobId")); + createLocalRecordDownloadByTimeJobResponse.setData(data); + + return createLocalRecordDownloadByTimeJobResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryRecordResponseUnmarshaller.java b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryRecordResponseUnmarshaller.java index 67bc6a0e30..e204624c75 100644 --- a/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryRecordResponseUnmarshaller.java +++ b/aliyun-java-sdk-linkvisual/src/main/java/com/aliyuncs/linkvisual/transform/v20180120/QueryRecordResponseUnmarshaller.java @@ -41,6 +41,7 @@ public static QueryRecordResponse unmarshall(QueryRecordResponse queryRecordResp ListItem listItem = new ListItem(); listItem.setSnapshotUrl(_ctx.stringValue("QueryRecordResponse.Data.List["+ i +"].SnapshotUrl")); listItem.setEndTime(_ctx.stringValue("QueryRecordResponse.Data.List["+ i +"].EndTime")); + listItem.setEventType(_ctx.integerValue("QueryRecordResponse.Data.List["+ i +"].EventType")); listItem.setRecordType(_ctx.integerValue("QueryRecordResponse.Data.List["+ i +"].RecordType")); listItem.setStreamType(_ctx.integerValue("QueryRecordResponse.Data.List["+ i +"].StreamType")); listItem.setBeginTime(_ctx.stringValue("QueryRecordResponse.Data.List["+ i +"].BeginTime"));