Skip to content

Commit e390186

Browse files
committed
vod sdk 视频点播新增OpenAPI接口
1 parent f34257f commit e390186

17 files changed

+1326
-12
lines changed

aliyun-java-sdk-vod/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-vod</artifactId>
55
<packaging>jar</packaging>
6-
<version>2.0.1</version>
6+
<version>2.0.2</version>
77
<name>aliyun-java-sdk-vod</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-vod/src/main/java/com/aliyuncs/vod/model/v20170321/CreateUploadVideoRequest.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ public CreateUploadVideoRequest() {
4646

4747
private String iP;
4848

49-
private String privilege;
50-
5149
private String title;
5250

5351
public Long getOwnerId() {
@@ -122,15 +120,6 @@ public void setIP(String iP) {
122120
putQueryParameter("IP", iP);
123121
}
124122

125-
public String getPrivilege() {
126-
return this.privilege;
127-
}
128-
129-
public void setPrivilege(String privilege) {
130-
this.privilege = privilege;
131-
putQueryParameter("Privilege", privilege);
132-
}
133-
134123
public String getTitle() {
135124
return this.title;
136125
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.vod.model.v20170321;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class DeleteVideoRequest extends RpcAcsRequest<DeleteVideoResponse> {
28+
29+
public DeleteVideoRequest() {
30+
super("vod", "2017-03-21", "DeleteVideo");
31+
}
32+
33+
private Long ownerId;
34+
35+
private String resourceOwnerAccount;
36+
37+
private Long resourceOwnerId;
38+
39+
private String videoIds;
40+
41+
public Long getOwnerId() {
42+
return this.ownerId;
43+
}
44+
45+
public void setOwnerId(Long ownerId) {
46+
this.ownerId = ownerId;
47+
putQueryParameter("OwnerId", ownerId);
48+
}
49+
50+
public String getResourceOwnerAccount() {
51+
return this.resourceOwnerAccount;
52+
}
53+
54+
public void setResourceOwnerAccount(String resourceOwnerAccount) {
55+
this.resourceOwnerAccount = resourceOwnerAccount;
56+
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
57+
}
58+
59+
public Long getResourceOwnerId() {
60+
return this.resourceOwnerId;
61+
}
62+
63+
public void setResourceOwnerId(Long resourceOwnerId) {
64+
this.resourceOwnerId = resourceOwnerId;
65+
putQueryParameter("ResourceOwnerId", resourceOwnerId);
66+
}
67+
68+
public String getVideoIds() {
69+
return this.videoIds;
70+
}
71+
72+
public void setVideoIds(String videoIds) {
73+
this.videoIds = videoIds;
74+
putQueryParameter("VideoIds", videoIds);
75+
}
76+
77+
@Override
78+
public Class<DeleteVideoResponse> getResponseClass() {
79+
return DeleteVideoResponse.class;
80+
}
81+
82+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.vod.model.v20170321;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.vod.transform.v20170321.DeleteVideoResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class DeleteVideoResponse extends AcsResponse {
30+
31+
private String requestId;
32+
33+
public String getRequestId() {
34+
return this.requestId;
35+
}
36+
37+
public void setRequestId(String requestId) {
38+
this.requestId = requestId;
39+
}
40+
41+
@Override
42+
public DeleteVideoResponse getInstance(UnmarshallerContext context) {
43+
return DeleteVideoResponseUnmarshaller.unmarshall(this, context);
44+
}
45+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.vod.model.v20170321;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class GetVideoInfoRequest extends RpcAcsRequest<GetVideoInfoResponse> {
28+
29+
public GetVideoInfoRequest() {
30+
super("vod", "2017-03-21", "GetVideoInfo");
31+
}
32+
33+
private Long ownerId;
34+
35+
private String resourceOwnerAccount;
36+
37+
private Long resourceOwnerId;
38+
39+
private String videoId;
40+
41+
public Long getOwnerId() {
42+
return this.ownerId;
43+
}
44+
45+
public void setOwnerId(Long ownerId) {
46+
this.ownerId = ownerId;
47+
putQueryParameter("OwnerId", ownerId);
48+
}
49+
50+
public String getResourceOwnerAccount() {
51+
return this.resourceOwnerAccount;
52+
}
53+
54+
public void setResourceOwnerAccount(String resourceOwnerAccount) {
55+
this.resourceOwnerAccount = resourceOwnerAccount;
56+
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
57+
}
58+
59+
public Long getResourceOwnerId() {
60+
return this.resourceOwnerId;
61+
}
62+
63+
public void setResourceOwnerId(Long resourceOwnerId) {
64+
this.resourceOwnerId = resourceOwnerId;
65+
putQueryParameter("ResourceOwnerId", resourceOwnerId);
66+
}
67+
68+
public String getVideoId() {
69+
return this.videoId;
70+
}
71+
72+
public void setVideoId(String videoId) {
73+
this.videoId = videoId;
74+
putQueryParameter("VideoId", videoId);
75+
}
76+
77+
@Override
78+
public Class<GetVideoInfoResponse> getResponseClass() {
79+
return GetVideoInfoResponse.class;
80+
}
81+
82+
}

0 commit comments

Comments
 (0)